I have a CCSv5 project that builds with no problems using MSP430 compiler version 4.1.3. When I build with compiler version 4.1.5, I get several errors during linking like this.
"../lnk_msp430fr5949.cmd", line 105: error #10100-D: conflicting placement
methods specified for "PARAMS_SEG"
"../lnk_msp430fr5949.cmd", line 105: error #10026-D: expecting output section,
GROUP, or UNION instead of ":"
The offending lines in my lnk.cmd file are:
From MEMORY:
MEMORY
{
SFR : origin = 0x0000, length = 0x0010
PERIPHERALS_8BIT : origin = 0x0010, length = 0x00F0
PERIPHERALS_16BIT : origin = 0x0100, length = 0x0100
RAM : origin = 0x1C00, length = 0x0800
PARAMS_SEG : origin = 0x1800, length = 0x0080 /* INFOA used for params */
EXCEPTION_LOG_SEG : origin = 0x1880, length = 0x0080
INFOC : origin = 0x1900, length = 0x0050 /* Shortened to allow other sections to use some info memory */
PGM_Q_SEG : origin = 0x1950, length = 0x0010
SEC_LOG_SEG : origin = 0x1960, length = 0x00A0
......
From SECTIONS:
SECTIONS
{
PARAMS_SEG : > PARAMS_SEG
PGM_Q_SEG : > PGM_Q_SEG
the error is for line 105, the line with PGM_Q_SEG.....
Is there a change in 4.1.5 that I need to understand better? The release notes talked about this:
------------------------------------------------------------------------------
FIXED SDSCM00032000
------------------------------------------------------------------------------
Summary : linker should not allows type flags on GROUP/UNION
Fixed in : 4.1.5
Severity : S3 - Minor
Affected Component : Linker
Description:
Update linker command file parser to disallow the type keyword if applied to a
GROUP or UNION.
but I don't know if this is my problem