cancel
Showing results for 
Search instead for 
Did you mean: 

Jump to user application using OpenBootloader on STM32G4

newbie_stm32
Associate III

Hi Community,

I recently started working on OpenBootloader on a NUCLEO-G491RE and was trying to understand its operation. As an initial step to understanding the protocol and operation used a terminal and sent commands manually those can be found in the AN3155 and the bootloader is flashed at 0x08000000. I tried some commands the Get Version command, and the Get ID command to name a few and they worked as expected. 

Then flashed the user program at 0x08004000 by changing its reset vector to point to the user program memory. But while executing the Go command to jump to 0x08004000 it returned ACK (0x79) but the user section is not executing.

What might have gone wrong?

PS: I have checked both the bootloader section and the user section by reading through STM32CubeProgrammer. And they have written in their respective locations.

1 REPLY 1
newbie_stm32
Associate III

Going further, I found that the issue is not related to jumping to the user program from the bootloader it is jumping and executing the Hard Fault handler at the user program while executing SystemClock_Config(). But commenting on it and flashing it again is working.

So which section of de-init related to clock configuration is missed in the bootloader in the OPENBL_FLASH_JumpToAddress()?