Hello.
I'm writing assembler for the MSP2353 using CCS5 under WinXP.
In order to store a table of constants in the INFO flash area of my MCU, I edited the .CMD file that CCS produces to change the DATA segment start address in memory from "RAM" (the default) to INFOD, as follows:
SECTIONS{ .bss : {} > RAM /* GLOBAL & STATIC VARS */ .data : {} > INFOD /* GLOBAL & STATIC VARS */
....
Then I put my constants in a .DATA section in my assembly code. This seems to give me exactly what I want -- my constants moved out of my program flash and into the Info flash address space. But...
Can anyone confirm for me that this is the "right" way to go about this? How common is it to manually edit the .CMD files that CCS produces? I'm relatively new to CCS, and would like not to crash it.
Thanks
Curt Carpenter
It is certainly a viable option. I don't recall what is included in the .data section as well. Perhaps this is your own named section.
Which leads me to the point that you can create you own named sections and perform the same mechanism in the linker command file.
It is not an issue to modify the linker command file, but you should take care when doing so.
Brandon