Hi,
I need to create some shared memory space in DDR which will be used to communicate between several devices.
linker.cmd states:
* Do not modify this file; it is automatically generated from the template
* linkcmd.xdt in the ti.targets package and will be overwritten.
I would like to change
MEMORY
{
IRAM (RWX) : org = 0x10800000, len = 0x40000
OCMC (RWX) : org = 0x40300000, len = 0x20000
DDR3_RAM : org = 0x80000000, len = 0x10000000
}
to
MEMORY
{
IRAM (RWX) : org = 0x10800000, len = 0x40000
OCMC (RWX) : org = 0x40300000, len = 0x20000
MY_RAM : org = 0x80000000, len = 0x01000000
DDR3_RAM : org = 0x81000000, len = 0x0F000000
}
Any statically allocated buffers would end up in .bss somewhere in DDR3_RAM.
MY_RAM would be kept clear.
I have two questions
1. How do I implement this change, when the file is overwritten?
2. How do I statically allocate into MY_RAM with a section declaration when allocating the buffer?
something like???
char my_buffer __attribute__ ((section ("MY_RAM")));
Thanks,
Michael.