Hi,
I am using CCSv5 to compile multicore code for C6608 processor. I am facing the following issue:
In core 1, I have some variables declared in a particular memory section in M3, say .TempShare section.
In core 2, I want to use only some of the variables that are present in the .TempShare section. The unused variables are not even declared in the core 2.
I have a linkercommand file where I have declared the origin and the length of the .Tempshare section. The linker command is same in both the cores.
Now in order to make sure that the common variables that are used in both the cores, have the same addresses, I need to link all the source files of the unused variables in the core 2 as well. Only then the memory locations are same.
Is there a work around to force the compiler/linker to check the memory sections across cores and then allocate address ?
Also, one more issue is, even if the declarations of unused variables are present in core 2, unless they are accessed, there is no memory allocation done for those variables. How can we force the compiler to assign the memory irrespective of the variable being used in the code or not ?
Thanks,
Vaishnavi