Skip to main content
berge472
Associate
August 1, 2013
Question

STM32F4 custom bootloader Vector table

  • August 1, 2013
  • 2 replies
  • 833 views
Posted on August 01, 2013 at 17:00

I have a custom bootloader that I flash to the first sector (0x8000000) and when it receives a new program it loads it to 0x8004000. however when It jumps to the program it seems to have problems with a lot of the peripherals.

I am assuming this is because it is still looking at the vector table at 0x8000000. What is the best way to re-direct it to the new Vector table at 0x8004000? 
    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    August 1, 2013
    Posted on August 01, 2013 at 17:14

    Change the setting in SystemInit() in system_stm32f4xx.c, perhaps have the linker fix up the correct address (__Vectors).

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    berge472
    berge472Author
    Associate
    August 1, 2013
    Posted on August 01, 2013 at 18:42

    Worked perfectly.

    Thanks Clive.