2016-04-09 03:42 AM
Hi all,
I'm experiencing a strange problem on STM32F405When a IWDG reset happens, the uC restarts with a wrong clock frequency, I think it's running from HSI instead of HSE. Same problem happens even if I call NVIC_SystemReset()If I power the board or I reset the board using the reset pin everything is working fine.Should I reconfigure something, or it should be a clock startup problem?I'm using this 8MHz xtal () with 22pf load capacitance, and uC frequency should be 168MHz.Any help is really appreciated.Luigi #stm32f405-startup-watchdog-clock2016-04-09 06:08 AM
The part ALWAYS starts from the HSI. You have code called in SystemInit() that turns on the HSE and the PLL, perhaps your code there is failing, or the crystal isn't starting. Suggest you review the, what paths that is taking, and what is happening externally.
There are app notes on the correct part selection.