Skip to main content
abhi2
Visitor II
September 20, 2016
Question

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

  • September 20, 2016
  • 1 reply
  • 576 views
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
This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
September 20, 2016
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 (See Profile) Up vote any posts that you find helpful, it shows what's working..