cancel
Showing results for 
Search instead for 
Did you mean: 

Custom linker section with fixed offset address

Gergo Santha
Associate II

Hi!

I'd like to set a custom section in the linker script file to store firmware specific constant data. This section should be at the head of the firmware binary with a fix offset address. I was able to create a section at the end of flash area but that way the entire flash area must be in the binary file which becomes too big (my binary is ~240K and it'd be a bandwidth overkill to use 512K binary).

I also had some experiments to place the section before the interrupt handler table but it looked like I have to modify the system startup assembly file - which is okay but first I'd like to check if any other options exists. Thank you!

1 REPLY 1

Make a hole in the front, between​ the vectors and the body of the application code

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..