cancel
Showing results for 
Search instead for 
Did you mean: 

main application's HAL_Delay() is not working ,when jumped from a bootloader program

abhi2
Associate
Posted on September 20, 2016 at 21:50

Hi ,

I am working on STM32F415RG, I recently wrote a bootloader program, which is doing its job of jumping to a specified location. 

Now my bootloader(at addr

0x08000000

) is able to jump to my main application(at addr

0x0800C000

 ), but when I see my main application getting executed I noticed it doesn't execute completely. It stops at the very first HAL_Delay(10) statement and hangs rest of my main application. 

Can anyone please help what went wrong? 

#stm32f4-!-bootloader-!-hal_delay
1 REPLY 1
Posted on September 21, 2016 at 00:39

Make sure you set up the vector table (SCB->VTOR) to point to the new table base.

Don't call the application code from within an IRQ Handler, or interrupt state.

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