Skip to main content
Gergo Santha
Associate II
May 2, 2023
Question

Custom linker section with fixed offset address

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!

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    May 2, 2023

    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..