debug and code non corresponding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-09 7:08 AM
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.
- Labels:
-
STM32U5 series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-09 8:12 AM - edited ‎2025-05-09 8:12 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-13 5:49 AM
in detail, how to know where vector table is located? I thought that putting >FLASH reallocates all correctly, but probably, this assumption is wrong.
