Associate
June 30, 2018
Solved
STM32F042F4P6 keeps resetting, IWDG ?
- June 30, 2018
- 2 replies
- 6761 views
Posted on June 30, 2018 at 23:23
Hello,
I have a custom PCB with a STM32F042F4P6.
The STM32 keeps resetting at a rate of 2.5 Hz. I measured this with a scope on the NRST pin.
After a long search i found out that the IWDGRSTF flag is set after each reset. This is strange, because i never enabled the IWDG or WWDG in CubeMX v4.23. I also do not see anything about a set up of a watchdog in the generated code. Further, after i erase the chip in ST-Link utility, the STM32 is still resetting (at a constant rate of >600hz).
NRST pin is pulled up on the PCB with an 43k ohm resistor.
Attached a screenshot of the IWDG and the CSR register.
What I tried so far:
- I Striped down my PCB; I removed the external oscillator and other IC's.
- I soldered a brand new STM32 on my PCB (couple of times)
- In CubeMX i made the most basic configuration possible.
- I swapped the pull up resistor for a 4.7k and 10k resistor.
But still the STM32 keeps resetting..
Is there something i overlooked?
Many thanks,
Thomas
#clock #pll #stm32f042f4p6 #stm32f042f4 #iwdg #reset-reason #cubemx-4.23