I'm using a C6670 and trying to solve the same problem as discussed here http://e2e.ti.com/support/embedded/bios/f/355/t/123986.aspx i.e. I'd like to place a variable in a SharedRegion section using a #pragma or similar. A simple example of the contents of the *.cfg file is as follows:
var SharedRegion = xdc.useModule('ti.sdo.ipc.SharedRegion');
SharedRegion.setEntryMeta(0,
{
base: 0x0C000000,
len: 0x00010000,
ownerProcId: CONTROLLER_PROC_ID,
isValid: true,
createHeap: false,
name:"my_shared_region",
});
in the generated linker.cmd file the Shared Region is listed
SECTIONS
{
ti.sdo.ipc.SharedRegion_0: { . += 0x10000;} run > 0xc010000, type = NOLOAD
}
I thought that I'd be able to do something like
int my_example_buffer[1024];
#pragma DATA_SECTION(my_example_buffer, "ti.sdo.ipc.SharedRegion_0");
This seems to result in the buffer being put at the end of the shared region i.e. at 0x0C010000 . Is is possible to get the linker to place a variable within a SharedRegion and if so, how? The Verified answer in the previously mentioned thread doesn't work either!