2021-08-10 11:44 PM
I use STM32F042F6P6. I found that IWDG does not reboot the microcontroller. The program stops, but the microcontroller does not restart.
At the time of IWG triggering, a short (at 0 then 1 again) is formed on the NRST pin, but the program is not restarted for.
Pressing the button connected to the pin NRST leads to a restart.
The NRST pin is pulled up to +3.3 using a 10K resistor.
2021-08-11 12:42 AM
> The program stops
Try to connect the debugger to find out, where does the program stop.
JW
2021-08-11 12:56 AM
> Try to connect the debugger to find out, where does the program stop.
IWDG is triggered at the right moment, but this does not lead to a restart of the program.
The debugger does not help because at the moment of triggering the IWDG, the debugger loses connection with the MCU
2021-08-11 12:57 AM
I checked the NVIC_SystemReset () command. The MCU hangs after it is executed.
2021-08-11 05:20 AM
NRST is hard wired. If it's going low, the chip is probably resetting.
Can you trigger a reset successfully with HAL_NVIC_SystemReset/NVIC_SystemReset?
If you attach a debugger in the stuck state, where is it trying to run code?