Skip to main content
Graduate
May 9, 2025
Question

debug and code non corresponding

  • May 9, 2025
  • 1 reply
  • 357 views

I have an application that debugs correctly when I loads it at address 0x08000000.

I'd like to use a bootloader, so I've changed the ld file, and choose, as flash origin, the address FLASH (rx) : ORIGIN = 0x08020000, LENGTH = 1920K

But, in this case, when I debug the application, the debug takes me in instructions that don't correspond to what I'm doing, I don't know how to explain, for example it takes me in the middle of a for cycle, but without passing from the starting....it seems that the debug is not aligned. 

Do I have to change something else to debug not starting from 0x08000000.?

Or what can I do to check what's wrong?Thank you.

IB.

    This topic has been closed for replies.

    1 reply

    ST Employee
    May 9, 2025

    Hello @IVent.1 ,

    When you change the starting address of your application to 0x08020000, please make sure to check your vector table relocation: If your application uses interrupts, ensure the vector table is relocated to the new start address.

     

    IVent.1Author
    Graduate
    May 13, 2025

    in detail, how to know where vector table is located? I thought that putting >FLASH reallocates all correctly, but probably, this assumption is wrong.