Skip to main content
Ahmed Kamel
Associate II
July 21, 2019
Question

Dear all, using STM32F030C8 embedded system memory bootl-oader, why the micro-controller immediately reset after jumping to the system memory boot-loader then enters the application again ?

  • July 21, 2019
  • 3 replies
  • 950 views

..

This topic has been closed for replies.

3 replies

Uwe Bonnes
Chief
July 21, 2019

Probably because VTOR is still pointing to the program. Before jumping to system memory boot-loader , a lot of things need to be unset. It is easier to set some mark e.g. in uninitialized RAM, do a real reset and check at the beginning of the startup code if that mark is set. If set, unset mark and jump to bootloader.

Piranha
Principal III
July 21, 2019

Detailed description of this principle in my post there:

https://community.st.com/s/question/0D50X0000AFpTmUSQV/using-nvicsystemreset-in-bootloaderapplication-jumps

The described custom bootloader code can instead be added to application for jumping from application to system memory bootloader.

Tesla DeLorean
Guru
July 21, 2019

Pretty sure the F0 doesn't have a VTOR to change, you have to remap the ROM properly and turn off all you interrupting sources.

#MillionWaysToFail

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..