NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
thinkfat has quit [Ping timeout: 260 seconds]
thinkfat_ has joined #openocd
sbach has quit [Read error: Connection reset by peer]
sbach has joined #openocd
Hawk777 has joined #openocd
nerozero has joined #openocd
Haohmaru has joined #openocd
Hawk777 has quit [Quit: Leaving.]
indy has quit [Ping timeout: 268 seconds]
indy has joined #openocd
merethan has joined #openocd
merethan has quit [Remote host closed the connection]
merethan has joined #openocd
merethan has quit [Remote host closed the connection]
merethan has joined #openocd
merethan has quit [Remote host closed the connection]
merethan has joined #openocd
crabbedhaloablut has quit [Ping timeout: 258 seconds]
crabbedhaloablut has joined #openocd
Guest69 has joined #openocd
Guest69 is now known as kraator
merethan has quit [Remote host closed the connection]
merethan has joined #openocd
<kraator> Hi, I recently updated OpenOCD (supplied by Zephyr SDK) from 0.11.0+dev-00244-g7e3dbbbe2 (2021-11-18-07:14) to 0.11.0+dev-00724-g42b6471c1 (2022-08-17-18:23) and now I can't flash my TI3235SF via SWD any more. OpenOCD scripts have minimal changes in openocd/scripts/target/ti_cc3220sf.cfg, (which also gets used for the cc3235sf), but these don't
<kraator> seem to cause the issue.
<kraator> the older version prints:
<kraator> Open On-Chip Debugger 0.11.0+dev-00244-g7e3dbbbe2 (2021-11-18-07:14)
<kraator> Licensed under GNU GPL v2
<kraator> For bug reports, read
<kraator> ocd_process_reset_inner
<kraator> Info : XDS110: connected
<kraator> Info : XDS110: vid/pid = 0451/bef3
<kraator> Info : XDS110: firmware version = 3.0.0.18
<kraator> Info : XDS110: hardware version = 0x0027
<kraator> Info : XDS110: connected to target via SWD
<kraator> Info : XDS110: SWCLK set to 2500 kHz
<kraator> Info : clock speed 8500 kHz
<kraator> Info : SWD DPIDR 0x2ba01477
<kraator> Info : cc32xx.cpu: hardware has 6 breakpoints, 4 watchpoints
<kraator> Info : starting gdb server for cc32xx.cpu on 3333
<kraator> Info : Listening on port 3333 for gdb connections
<kraator>     TargetName         Type       Endian TapName            State
<kraator> For bug reports, read
<kraator> ocd_process_reset_inner
<kraator> Info : XDS110: connected
<kraator> Info : XDS110: vid/pid = 0451/bef3
<kraator> Info : XDS110: firmware version = 3.0.0.18
<kraator> Info : XDS110: hardware version = 0x0027
<kraator> Info : XDS110: connected to target via SWD
<kraator> Info : XDS110: SWCLK set to 2500 kHz
<kraator> Info : clock speed 8500 kHz
<kraator> Info : SWD DPIDR 0x2ba01477
<kraator> Info : [cc32xx.cpu] Cortex-M4 r0p1 processor detected
<kraator> Info : [cc32xx.cpu] target has 6 breakpoints, 4 watchpoints
<kraator> Info : starting gdb server for cc32xx.cpu on 3333
<kraator> Info : Listening on port 3333 for gdb connections
<kraator>     TargetName         Type       Endian TapName            State
<kraator> --  ------------------ ---------- ------ ------------------ ------------
<kraator>  0* cc32xx.cpu         cortex_m   little cc32xx.cpu         halted
<PaulFertser> kraator: please never paste more than 2-3 lines to a public IRC channel, use some pastebin instead.
<kraator> sorry, I'm not used to IRC
<PaulFertser> kraator: please pastebin somewhere what new version prints
<PaulFertser> I can't see any real errors mentioned
<PaulFertser> Probably start with openocd -d2 to get more essential debug info about what's happening under the hood.
<kraator> -d2 doesn't add any new info about why it is failing. The new version prints https://pastebin.com/27CPuUPC, while the old one looks like this: https://pastebin.com/KKkk9xJK
<PaulFertser> kraator: and please stay on channel, someone will get back to you
<kraator> ok thanks
merethan has quit [Remote host closed the connection]
merethan has joined #openocd
kraator_ has joined #openocd
<kraator> -d3 actually adds some info about an internal error code while trying to write the msp register: https://pastebin.com/R8wcFjhK
merethan has quit [Remote host closed the connection]
merethan has joined #openocd
merethan has quit [Remote host closed the connection]
merethan has joined #openocd
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #openocd
<PaulFertser> kraator: yes, not being able to write to msp would break the reset sequence as it's currently defined.
<PaulFertser> kraator: what does "reg" command print? Probably msp name changed?
<PaulFertser> Doesn't look like it...
<PaulFertser> kraator: try adding "halt" after soft_reset_halt
<PaulFertser> -304 means ERROR_TARGET_NOT_HALTED
<PaulFertser> soft_reset_halt is really rarely needed so must be some regression after refactoring but additional "halt" should remedy it.
Haohmaru has quit []
merethan has quit [Remote host closed the connection]
merethan has joined #openocd
emeb has joined #openocd
<kraator> Adding halt after soft_reset_halt in openocd/scripts/target/ti_cc3220sf.cfg indeed fixed the issue! Thanks!
<PaulFertser> kraator: can you probably create a ticket on sourceforge so that it would be fixed upstream one way or the other?
<kraator> sure
<PaulFertser> Thank you
merethan has quit [Ping timeout: 252 seconds]
<borneoa_> kraator: if I remember correctly, the openocd in zephyr os has one patch to avoid a double reset... an issue that hit TI ccXXXX devices because makes ness in their jtag. Maybe you can check in zephyr openocd repo and cherry pick that patch. It should also be in our openocd gerrit and not approved. I cannot find more info at the moment, sorry.
kraator has quit [Quit: Client closed]
Steffanx has quit [Quit: Whop whop]
<PaulFertser> borneoa_: it seems like somehow soft_reset_halt is not setting some internal OpenOCD target variable to signal it's in the halted state.
nerozero has quit [Ping timeout: 252 seconds]
Steffanx has joined #openocd
<borneoa_> PaulFertser: it should be done by the polling. I will have a look...
<PaulFertser> borneoa_: thank you!
emeb has quit [Quit: Leaving.]
kraator_ is now known as kraator
PaulFertser has quit [Ping timeout: 255 seconds]
kraator has quit [Quit: Konversation terminated!]
PaulFertser has joined #openocd