Hi @VaneB
Without any changes to my software environment, I was unable to reproduce the previous malfunction. However: A1: I checked SWT -> CR -> FRZ, and it's clear that this register flag has been set to 1.
A2: I guess you want to determine whether the MCU has reset by flipping the GPIO. The way I observed it was by monitoring a continuously accumulating OS_TICK variable. Previously, when we determined that the MCU had reset, it was because we saw this variable start counting again from 0 (1ms count, uint32 type)
A3: This situation will not occur when running without setting breakpoints.
I am currently unable to reproduce the fault and therefore cannot continue to provide valid information. However, I have a question. Could the reset of this MCU be related to the debugger? For instance, if the JLINK I'm using has an issue, it might cause other MCU exceptions to be triggered when performing breakpoint debugging (as far as I know, software breakpoints are attached by the debugger).