Skip to main content
Associate II
June 28, 2023
Solved

STM32F407 Bootloader Go Command

  • June 28, 2023
  • 2 replies
  • 1686 views

Hello, 

I tried to use the go Command at the beginning of flash (0x08000000), the bootloader sent me back an ACK. But i've got 2 problems. 
First, if i don't change back my boot pins, i will be in System Memory Mode, why ? Am I reading boot pins at the beginning of flash ? 

Secondly, when i jump, even if my reset is at HIGH (like my arduino is sending 3v3 on the reset), the program doesn't work, leds are supposed to blink but they only turn on.

Thanks.

Cyril.

This topic has been closed for replies.
Best answer by Cyril C

To fix the problem i first changed the STM, i took an STM32L552Z and then, i saw a solution, in your system file (system_stm32XXX file), you need to uncomment the line #define USER_VECT_TAB_ADDRESS. If i understood well, the first time you meet an interrupt, it will go somewhere else and get stuck in that place. I think in my case, i was stuck in bootloader because as soon as i first reseted, i chose to go to the bootloader (system memory). 

2 replies

Cyril CAuthor
Associate II
June 28, 2023

Finally, i can just say that my "Go command" act like a reset. I tried to jump at other address but it still look the state of BOOT1 and BOOT0 pins.

Cyril CAuthorBest answer
Associate II
June 29, 2023

To fix the problem i first changed the STM, i took an STM32L552Z and then, i saw a solution, in your system file (system_stm32XXX file), you need to uncomment the line #define USER_VECT_TAB_ADDRESS. If i understood well, the first time you meet an interrupt, it will go somewhere else and get stuck in that place. I think in my case, i was stuck in bootloader because as soon as i first reseted, i chose to go to the bootloader (system memory).