NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
slobodan has quit [Read error: Connection reset by peer]
slobodan has joined #openocd
slobodan has quit [Ping timeout: 246 seconds]
Hawk777 has joined #openocd
crabbedhaloablut has joined #openocd
tsal has quit [Ping timeout: 258 seconds]
tsal has joined #openocd
nerozero has joined #openocd
nerozero has quit [Remote host closed the connection]
nerozero has joined #openocd
antto has quit [Quit: ZNC 1.8.2+deb3.1 - https://znc.in]
antto has joined #openocd
Hawk777 has quit [Quit: Leaving.]
Haohmaru has joined #openocd
slobodan has joined #openocd
dliviu has quit [Server closed connection]
dliviu has joined #openocd
bvernoux has joined #openocd
jybz has quit [Server closed connection]
jybz has joined #openocd
bvernoux_ has joined #openocd
bvernoux is now known as Guest1517
bvernoux_ is now known as bvernoux
Guest1517 has quit [Ping timeout: 258 seconds]
bvernoux_ has joined #openocd
bvernoux has quit [Ping timeout: 258 seconds]
bvernoux_ is now known as bvernoux
Hawk777 has joined #openocd
<polprog> my yesterday's s5pv210 (arm cortex a8) seems to be partly working, but I cannot issue any jtag reset command with 'reset halt' or 'reset run'
<polprog> the message im getting is s5pv210.cpu: how to reset?
<polprog> i have jtag reset config set (i believe) correctly
<polprog> What do i need to configure to reset that board?
_whitelogger has joined #openocd
Haohmaru has quit [Ping timeout: 248 seconds]
<PaulFertser> polprog: do you have physical reset line connected to the target? Then you need "reset_config srst_only" (or trst_and_srst if you also have TRST connected)
<polprog> my board exposes nTRST and nRESET, they are tied together with a 330R and nTRST is pulled up to vdd
<PaulFertser> polprog: they shouldn't be tied together, why?
<polprog> im using a jlink with nTRST connected
<PaulFertser> polprog: to fully reset the target you need nRESET connected to SRST.
<PaulFertser> polprog: TRST isn't related to resetting the target at all.
<PaulFertser> polprog: it's just to bring JTAG state machine to "reset" state.
<polprog> thats how they are connected on the schematic, ill take a look at the board in a sec
<polprog> whether the resistor is fitted there
<PaulFertser> polprog: isn't nRESET routed separately?
<polprog> it is broken out separately on the connector, but the 330R is there and it connects nTRST with nRESET
<PaulFertser> polprog: that's silly, are you sure you do not want to desolder it?
<polprog> im reading up on what ntrst and nreset to and considering removing it yeah
<PaulFertser> polprog: there's "srst_pulls_trst" option in reset config which sometimes helps to deal with broken hardware like that.
<polprog> this board is full of old quirky stuff that ill desolder it and use nRESET from the jlink
nerozero has quit [Ping timeout: 244 seconds]
<polprog> allright, ive separated reset and trst
<polprog> with reset_condig trst_and_srst I can now reset the board, but it drops connecton with the target when doing so
<polprog> http://0x0.st/HfBs.txt this is the log for reset run now
<PaulFertser> polprog: probably it has some ROM code that disables JTAG while it's executing
<polprog> probably the ROM that loads the first stage bootloader from SD card, since it can do secure boot
<polprog> it did hit the breakpoint..
<polprog> still broken, it does not hit the hardware breakpoints that I set and step is not working, i can halt it, and it halts (debug-request), but a subsequent step returns "tiemout waiting for target halt". It halts in a regular memory location, that is valid and i can read it
<PaulFertser> polprog: probably hw watchdog is running and resetting it?
<polprog> thats possible
<polprog> ill try to disable it
<PaulFertser> polprog: do you have serial output or other way to see it's booting?
<polprog> No, thats why im trying to use jtag debugging to see where uboot hangs
<PaulFertser> polprog: they routed out JTAG but not UART?
<polprog> They routed UART but i'm trying to build a version of uboot that puts something on any of the uarts
<polprog> I have a uboot tree that is said to work on the CPU, but not for this board
<polprog> I have the full schematic for the board and the rest of the documentation
<polprog> but the vendor uses their own bootloader and I really want to have uboot on it
<PaulFertser> polprog: if you set hw breakpoint at the u-boot entry then I would expect the watchdog to be not active. Unless there's some external that you can't disable.
<PaulFertser> polprog: also probably you want to try with telnet alone for starters, as interaction with GDB can get confusing. E.g. it removes all breakpoints after the target stops and reinstalls them when you ask to "continue" by default.
<polprog> The internal ROM loader disables watchdog. Then there is some vendor specific FSBL and then it loads uboot. Im not sure if the FSBL enables watchdog
<polprog> the wdt is disabled at this point
<polprog> i got something on the uart..
bencoh has quit [Server closed connection]
bencoh has joined #openocd
gpol has quit [Quit: The Lounge - https://thelounge.github.io]
gpol has joined #openocd
gpol has quit [Quit: The Lounge - https://thelounge.github.io]
slobodan has quit [Ping timeout: 246 seconds]
crabbedhaloablut has quit []
gpol has joined #openocd
<silurian_invader> polprog: zynq?
* silurian_invader reads the pasted log and discovers that is incorrect
bvernoux has quit [Quit: Leaving]
<polprog> the good news is that i got u-boot configured correctly enough that the lowlevel_init prints "OK" to the UART
<polprog> the bad is that it hangs there and without working breakpoints it will take a lot of rebuilds...