Part Number: TMS320C6657
We are trying to access the shared memory on the DSP with pointers. Is that possible, if so can you show how? We know that TI has APIs for Inter-processor communication but is that possible at a low (pointer) level?
More information:
We did create a shared region in the .cfg file:
SharedRegion.translate = true;
SharedRegion.setEntryMeta(0,
{ base: 0x0C000000,
len: 0x00040000,
ownerProcId: 0,
isValid: true,
name: "sharemem",
});
We created a counter and tried to use Memory_alloc(... to place it in the shared region.
The address in the pointer is identical in both cores:
[C66xx_0] core 0, counterPtr = 0x84006480
[C66xx_1] core 1, counterPtr = 0x84006480
When we increment the counter in the code that is running on both cores, it behaves like two independent counters, as opposed to one counter in shared memory.
We would appreciate some help in figuring why this is.