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
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,