Skip to main content
DiBosco
Senior
March 19, 2025
Question

Debugging issue: No source avaialble when changing start address tio 0x08004000

  • March 19, 2025
  • 1 reply
  • 394 views

I have a slightly funky setup where I'm using Cube IDE with a manually created project with custom make file and linker files.

If it lives at 0x08000000 all is fine, I can debug with no issues. I want to shift it to 0x08004000 to leave space for a bootloader. I've looked at endless tutorials and posts here and cannot see what I am doing wrong.

I get various different messages. At first invoking the debugger:

No source available for "stm32f030c8_vectors() at 0x8004000"

Then if I reset and try again:

No source available for "__udivsi3() at 0x80041c4"
I've changed Set Program counter (hex) to 0x0800400
Am bored now after chasing my tail for a day or so, is anyone able to help me here and advise me what I might be doing wrong?

I will stress, with the program at 0x0800000, it's only when I change the linker to:

rom (rx) : ORIGIN = 0x08004000, LENGTH = 48K

It stops debugging.

Thanks

 

 

 

 

1 reply

DiBosco
DiBoscoAuthor
Senior
March 19, 2025

Ah, apparently M0s don't do vector table relocation. 

This mioght take some working out.