We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
I want the linker to put all code in entire code region except one section that must be located at specific location. for example,
RO: 0x40000000 - 0x40008000
Init area: 0x40008000- 0x40008100
RO: 0x40008100 - 0x40040000
What is the simple way to do this with scatter file?
Thank you
Ari
you may check armlink manual like these:
https://developer.arm.com/documentation/dui0474/m/scatter-loading-features/root-execution-regions/methods-of-placing-functions-and-data-at-specific-addresses
developer.arm.com/.../example-of-how-to-explicitly-place-a-named-section-with-scatter-loading
Thanks for response.
These examples don't solve my problem.
I need to put code in 2 separate areas, but I wish that the linker will fit them without having to define the objects per area.
Something like:
LR_IROM1 0x40006000 0x40000
{
ER_IROM0 0x40006000 0x2000{ *.o (+RO) ; first part of code}
ER_IROM1 0x40008000 0x100 { *.o (Init, +First) }
ER_IROM2 +0{ *.o (+RO) ; second part of code - This will not work!
}
...
I wouldn't like to put manually objects in ER_IROM0. This may result with wasted code space.
Is there a way to tell the linker to place all code in 2 separated areas?
Thank you,