cancel
Showing results for 
Search instead for 
Did you mean: 

debug and code non corresponding

IVent.1
Senior

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.

2 REPLIES 2
Chaima_M
ST Employee

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.

 

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