Tool/software: TI C/C++ Compiler
Hi there,
My main.c includes a header utils.h and in utils.c I have the following:
I defined global constants like
const int var_1 = 1;
and each core prints them. What they print is not what is defined above, e.g. var_1 is not equal to 1. What do I need to do s.t. when core1 prints var_1 I get 1? My guess was that some things with initialization go wrong? All data is placed in shared memory.
What I tried:
1.) Place them in a custom section (.shared_section > MSMCSRAM in lnk.cmd):
#pragma DATA_SECTION (var_1, ".shared_section")
const int var_1 = 1;
Variables are placed in the right section, still the output is !=1
2.) I added shared_section: load >> MSMCSRAM to lnk.cmd but no change
(In the end, I would like to place these vars in the section .shared_section.)
Thank you very much for your help.