Skip to main content
Visitor II
November 21, 2022
Question

Cortex M0 Bootloader to application jump.

  • November 21, 2022
  • 1 reply
  • 2143 views

I'm working on Over the Air and I have three components.

Bootloader in first two pages (using stm32f09x)

and applicaiton and then second application.

I'm unable to jump to application from bootloader for a specific reason.

I have one linker script, gave a build (app1) and made some modifications (app2).

How can I jump to application if the second slot application is having an address of reset handler which is pointing in the first location? (And let's say I add the offset of the app1 size, am I sure that the reset handler stays in the exact same location everytime i give a build)?

Help me out here. My master thesis time is running out.

One solution I am implementing is two use two binary images and upload to the cloud but i think this is a patchy idea, I was something solid if you have one.

Thanks in advance.

    This topic has been closed for replies.

    1 reply

    Graduate II
    November 21, 2022

    https://community.st.com/s/question/0D53W00000trgpiSAA/how-to-boot-to-random-address-without-vecttaboffset-stm32f072

    f0 doesnt have a vector table offset, you need to do it yourself, at the beginning of each app the first thing you should do is realocate your vector table to RAM.

    >>My master thesis time is running out.

    If you need some help with this hit me up