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)
<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...