Hi,
In IAR, I can use #pragma location directive to place a global (or static) variable at absolute address, for example,
#pragma location="MYSEG"
const int var = 10;
Then, var = 10 should be located in segment "MYSEG".
However, IAR's compiler won't put var = 10 into "MYSEG", if it finds that the var is not used directly.
So, does anyone else know a method to force the compiler to put the variable into the memory regardless whether the variable is used or not.
Thanks
Liu