borneoa_ has quit [Quit: Connection closed for inactivity]
borneoa_ has joined #openocd
uartist has quit [Quit: Ping timeout (120 seconds)]
<PaulFertser>
borneoa_: hey! :) yesterday's discussion on ##stm32 highlighted a potential issue with SYSRESETREQ: https://github.com/ARM-software/CMSIS_5/issues/302 . There's also a linked issue made by someone working for NXP but explanations I could read feel unsatisfactory. My point is that /probably/ OpenOCD should treat this register the same way but it would be good to understand why exactly it might be
<PaulFertser>
needed.
uartist has joined #openocd
<borneoa_>
PaulFertser: thanks for reporting it. I will have a look at it.
<PaulFertser>
borneoa_: tbh, I got rather angry after reading those tickets.
<borneoa_>
PaulFertser: why? Maybe I missed the point but looks like some incorrect reading of arm docs.
Hawk777 has joined #openocd
<borneoa_>
PaulFertser: after reading, looks like a timings issue between writing in NVIC_AIRCR and the moment SW reset gets triggered. Not preserving prigroup bits can make the running FW unstable and crash before the SW reset takes effect.
<borneoa_>
PaulFertser: I think we should implement the same, but maybe after 0.12.0
nerozero has quit [Ping timeout: 246 seconds]
<PaulFertser>
borneoa_: nobody really properly explained why it was needed there. So even if running FW is unstable and crashes, does it mean the target won't reset at all?