Skip to main content
EShai.2
Associate
August 11, 2021
Question

Problem with IWDG. does not reboot the MCU

  • August 11, 2021
  • 3 replies
  • 1015 views

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.

This topic has been closed for replies.

3 replies

waclawek.jan
Super User
August 11, 2021

> The program stops

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

JW

EShai.2
EShai.2Author
Associate
August 11, 2021

> 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
EShai.2Author
Associate
August 11, 2021

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

TDK
August 11, 2021

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