I am a newby to the msp430 and the msp430-gcc toolchain. I have a .c file that results in an .o file. Nothing new so far. But I want the code from this particular object file to be located at a fixed address in flash (0xaf00). Does anyone know how to get this right? I tried the --section-start SECTION=ADDRESS option of the linker, in combination with the following line in my .c file:
__asm__(".section .my_section");


Just put the following when you are compiling
-Wl,--section-start -Wl,.text=0xaf00
it will put your code at specified address

This creates a new section, but the code that is located here is not executed.
Ideas, anyone?

It is no need to create a new section if you just want to relocate
the code

Saso

Thanks in advance,
Marc


Reply via email to