Hi all,
The default memory regions are defined in the auto generated linker.cmd file and is as follows:
MEMORY
{
L2SRAM (RWX) : org = 0x800000, len = 0x100000
MSMCSRAM (RWX) : org = 0xc000000, len = 0x200000
DDR3 : org = 0x80000000, len = 0x80000000
}
This is done during system start up and initialization and is handled by XDCtools.
We can define sections in the above memory regions in the custom xdt file that will add these sections in addition to the default sections created by the XDCtools.
For example:
.gdataddr: load >> DDR3
.gdatamsmc: load >> MSMCSRAM
.gdatal2sram: load >> L2SRAM
How can we define custom memory regions, bypassing the default memory regions created by the XDCtools?
We would like to do something like this, for example:
MEMORY
{
L2SRAM (RWX) : org = 0x800000, len = 0x100000
MSMCSRAM (RWX) : org = 0xc000000, len = 0x200000
DDR3 : org = 0x80000000, len = 0x40000000
GDATA : org = 0xC0000000, len = 0x40000000
}
And create sections in our custom memory region:
.gdataddr: load >> GDATA
Thanks