cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with IWDG. does not reboot the MCU

EShai.2
Associate II

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.

4 REPLIES 4

> The program stops

Try to connect the debugger to find out, where does the program stop.

JW

> 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

EShai.2
Associate II

I checked the NVIC_SystemReset () command. The MCU hangs after it is executed.

TDK
Guru

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?

If you feel a post has answered your question, please click "Accept as Solution".