Hi,
I am using MSC8122. The memory models is:- M1 memory contains core specific program code (isr etc.). Program code common to all the cores is placed in M2 memory. I use .lcf files for linking and common file is used to generate the .map file for all the 4 cores.
As discussed earlier, I did the following to access start of M2 .text segment and size.
extern unsigned long M2_Text_Start[];
extern unsigned long M2_Text_Size[];
extern unsigned char* g_M2_Start_Of_Code;
extern unsinged int g_M2_Size_Of_Code;
In the C file I do:-
g_M2_Size_Of_Code = (unsinged int)M2_Text_Size;
But I get the following error:-
[LNK,2,6999,-1]: Error: "_M2_Text_Size" is unresolved, referenced from:
file.eln
[LNK,2,6999,-1]: Error: "_M2_Text_Size" is unresolved, referenced from:
file.eln
[LNK,2,6999,-1]: Error: "_M2_Text_Size" is unresolved, referenced from:
file.eln
I assume it is coming from 3 cores but I am not able to resolve it.
Pls let me know how to resolve the issue.
Regards
Amit