Part Number: CODECOMPOSER
Other Parts Discussed in Thread: SYSCONFIG, AM263P4
Tool/software:
Hi,
I am using a AM263P4 with CCS 20.2 and I am wondering: what is the intended way to manage shared memory accross the different cores with sysconfig?
e.g. I want a memory section ".shared_mem" where several global structs should be placed in. But not every core uses all of them. In order to get the placement right, I have to add a memory section in sysconfig for each core individually and add somethink like this to each main:
volatile GlobalStruct_t __attribute__((section(".shared_mem"))) __attribute__((retain)) GS1;
volatile GlobalStruct_t __attribute__((section(".shared_mem"))) __attribute__((retain)) GS2;
volatile GlobalStruct_t __attribute__((section(".shared_mem"))) __attribute__((retain)) GS3;
And to be sure, I have to check the memory map after compilation, to see if the placment and the order of the structs is correct. Quite annoying and error-prone if I have to make changes
Is there a better way?
Best regards
Frank