Hi,
I have been programming 8051's for a few years and have just purchased the MSP LaunchPad with a M430G2553 uC and am learning how to program it using CCS.
I have used the segment name "code" to store an array in FLASH in other compilers, e.g.:
code unsigned char testArray[3][8]= {"10 X 6", "6 X 5", "8 X 8"};
I have read that it is different for CCS. I would like the compiler to store the array in the FLASH memory of the M430G2553 . It doesn't matter where the compiler puts it in FLASH - the array is just too big for RAM.
I read that the CCS equivalent of "code" is ".text". I have also read that I need to make changes in the linker command file and use #pragma DATA_SECTION in my code.
I'm quite lost about what to do. Where can I find the linker command file in the IDE? What changes do I need to make to it, if any? How do I use #pragma DATA_SECTION in my code?
Please help!
Dan