I am using CCSV4 Version 4.2.4.00033, which came with a TMS320C5502 eZDSP development kit. I'm trying to get hex55 to "zero fill" the .bss section, which, according to document SPRU281g can be accomplished by adding the following line to link.cmd:
SECTIONS
{
...
.bss: {} = 0x00;
...
}
Accordingly, I modified the file like so:
SECTIONS
{
.text > RAM PAGE 0 /* Code */
/* These sections must be on same physical memory page */
/* when small memory model is used */
.data > RAM PAGE 0 /* Initialized vars */
.bss > RAM PAGE 0 /* Global & static vars */
.bss: {} = 0x00;
.const > RAM PAGE 0 /* Constant data */
.sysmem > RAM PAGE 0 /* Dynamic memory (malloc) */
.stack > RAM PAGE 0 /* Primary system stack */
.sysstack > RAM PAGE 0 /* Secondary system stack */
.cio > RAM PAGE 0 /* C I/O buffers */
/* These sections may be on any physical memory page */
/* when small memory model is used */
.switch > RAM PAGE 0 /* Switch statement tables */
.cinit > RAM PAGE 0 /* Auto-initialization tables */
.pinit > RAM PAGE 0 /* Initialization fn tables */
vectors > VECS PAGE 0 /* Interrupt vectors */
.ioport > IOPORT PAGE 2 /* Global & static IO vars */
}
And I get the following error message:
"../lnk.cmd", line 59: error: expecting output section, GROUP, or UNION instead
of "="
error: errors encountered during linking; "ProLinkIIPlus.out" not built
Can you tell me the proper format, please?
For background, this is a project using a TMS320VC5502 which was originally compiled 4 years ago on a pre Eclipse version of the compiler. The program is contained on a serial EEPROM that connects to the DSP over the I2C bus. Everything worked fine. I'm am in the process of modifying the code, but CCSV4 and whatever version of hex55 I was using are very different from CCSV4 and hex55 version 4.3.8.
Thanks.
Mike