Hi,
I am using XDC 3.22.0.09 and just trying to setup different shared regions with different cachline sizes for IPC.
Code in the *.cfg file is as follows:
var SharedRegion0 = xdc.useModule('ti.sdo.ipc.SharedRegion');
SharedRegion0.setEntryMeta(0,
{ base: sharedMem,
len: sharedMemSize,
ownerProcId: 0,
isValid: true,
cacheLineSize: 64,
name: "SHARED_RAM",
});
var SharedRegion1 = xdc.useModule('ti.sdo.ipc.SharedRegion');
SharedRegion1.setEntryMeta(1,
{ base: 0xE0000000,
len: 0x00200000,
ownerProcId: 0,
isValid: true,
cacheLineSize: 128,
name: "SHARED_DDR2",
});
/*
* @(#) ti.sdo.ipc.examples.multicore.evm647x; 1, 0, 0, 0,87; 5-2-2011 16:22:43; /db/vtree/library/trees/ipc/ipc.git/src/ ipc-g16
*/
In CCSv4.2.3 in the Outline Window two SharedRegion items appear. But in the respective Properties Windows the cache line size is 128 for both entities.
When I add
SharedRegion0.cacheLineSize = 128;
SharedRegion1.cacheLineSize = 64;
to the *.cfg file, the cache line size is 64 for both entities.
It seems that only the last .cachlineSize entry is valid.
Are the other SharedRegion options - that are not displayed - correct?
Best regards, Carsten