Other Parts Discussed in Thread: MSP430F5419
I am using CCSv4.1 designing a product in C for an MSP430F5419. To keep backward compatibility I need to have a global struct in a fixed position in RAM. I have modified the linker file to reduce the RAM space used by .bss and assigned some of it to my own RAM section. I then use the #pragma DATA_SECTION(...) to position the struct in this section.
This seems to work fine - looking at the memory shows my struct is placed where I want it and access seems to work fine. The C compiler user guide slau132d states in section 5.8.4 that:
"If you allocate a global variable using a DATA_SECTION pragma and you want to reference the variable in C code, you must declare the variable as extern far".
Unfortunately using the "far" keyword in my code (for the struct and also for other variable types) throws up compiler errors - it seems not to be recognised as a keyword. I have the same problems using IAR Kickstart.
Am I OK in this application to ignore the recommended use of the "extern far" declaration?
Thanks,
Chris.