In an earlier version of CCS (CCS2.0) for MSP430, a standard C file, containing code and tables of constants was compiled and linked into a specific flash memory region in a MSP430F167 known as section ".new_boot"
This area of boot code needed to be completely contained in a separate flash area so it could be used to update the main code, which is in a different section.
All code and constants for this boot file were successfully put in this single section using two pragmas directed to the SAME section, ".new_boot"
code was pushed into this ".new_boot" section via
#pragma CODE_SECTION(function_name, ".new_boot")
constant data was ALSO put in the same "new_boot" section via
#pragma DATA_SECTION(array_name,".new_boot")
I am trying to move the code to CCSV6 and it appears this feature no longer works as these pragmas cannot reference the same section.
Is there a work around short of splitting the existing ".new_boot" section into separate data and code sections and manually managing their sizes?
For this application, it was very useful to be able to let the code and constant data be automatically placed in the same section.