Hi,

thes e varibles, like UserList,IMEINumber etc.. are flash variables and i have declared it as follows in the header file:

const __attribute__ ((section (".flashA"))) int SystemPrefix;

(...)

in all the header file, but still i am having this probelm, i refrred to the compile folder(mspgcc)in my drive and had a look in the ir include files , and did the same thing...of how they have included to avoid this ..still i am helpless!! could any one suggest me ,to overcome this error,


Put something like this in your header file:

extern struct my_flash_t {
 int SystemPrefix;
struct OBDDynamicVariables OBDDY[2];
 ...
} my_flash;

and put something like this in a C file:

const __attribute__ ((section (".flashA"))) struct my_flash_t my_flash;

HTH,
Patrick





Reply via email to