Tool/software: TI C/C++ Compiler
Hi,
I have a custom cmd file which defines the load and run locations for some parameters that i would like to calibrate. the behavior and setup is very similar to the other thread, which is locked for now
the only difference is that i'm on a 28335 and I'm not using CLA.
after a few trys, i found that statements like
#pragma DATA_SECTION(aDataName, "aDataSec")
int aDataName = 1234;
in a custom declared data_section would NOT be considered 'initialized data' thus the warning and wrong behavior.
i was able to get around by adding a const keyword:
#pragma DATA_SECTION(aDataName, "aDataSec")
const int aDataName = 1234;
then the warning goes away, the data is put in the right flash location.
but this aDataName var isn't really a constant. i'm tuning it in the RUN location, which is ram. I don't change it in the code but with memory write directly so i would rather not to declare it const.
Can anyone from the compiler team to look into this issue? why a standard C statement with initial value declaration is not honored by the compiler? is this a bug in the compiler? any reference document?
I see a few similar posts in the forum but i don't think any one of them got a straight answer out yet.
thanks.
regards
gzhang