cancel
Showing results for 
Search instead for 
Did you mean: 

Entering into system Bootloader mode with IWDG?

Javier1
Principal

Good electronical morning to everyone.

Context:

I find myself needing to enter stm32´s system bootloader during runtime on command.

I asigned a GPIO with a simple RC circuit to pull the BOOT0 pin high.

The system reset is done by IWDG exception, i just stop feeding the watchdog and reaches its countdown.

0693W000008GH1FQAW.png 

Question:

I dont like my solution, i dont want to wait an undetermined ammount of time for the iwdg to reach its countdown.

I remember from my time in uni ( with LPC1768 mcu) you could feed the wrong key to the watchdog inmediatly forcing the wdg exception (kicking the watchdog).

Can this be done with HAL in stm32?

Another solution would be to jump to the system bootloader flash address but i am afraid of all the timers and things i need to manually deactivate .... is it worth it?

thanks !

2 REPLIES 2
KnarfB
Principal III
Piranha
Chief II

Just to know... Watchdog only resets the system. If you want that, you can just call NVIC_SystemReset().