This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How do I map SECTIONS to MEMORY segments with DSP/BIOS 5.42 and CCS 6.01

For my code that compile without DSP/BIOS 5.42, I would use a SECTIONS statement such as

.buffer : > DARAM, to put the .buffer into DARAM space, where the .buffer was defined by

a pragma statement in the source code.

But then when I enable DSP/BIOS 5.42, the linker gives an errors saying it doesn't know which

segment to put in.

Also, under the Configuration tool to edit the *.tcf file, I will like to change the name of VECT segment under the MEM manager, but it doesn't give me the option to Rename the segment. It also only allows me to specify the base address, but doesn't allow me to change the segment length.

Why?

"warning #10247-D: creating output section ".buffer" without a SECTIONS specification"

  • Chris,

    Have a look at the Section 5.1 Memory Management (Page 143) in UG for details about adding sections (you may have to add your linker command file) and renaming MEM segments.

  • Vikram,

    Thanks for your suggestion. I followed steps in 5.1.3 for the C55x device. In the first line,

    of my user C5505.cmd file, I put:

    -l testcfg.cmd

     // assuming project name is test

    Then in the memory properties, I set the checkbox for the User cmd file for compiler sections.

     

    I removed all the MEMORY segment definitions from existing .cmd file and let the .tcf file define

    all the segments.

     

    When I compile, I get all these warnings saying

    "could not map .bss to a SECTION"

    "could not map .data to a SECTION"

    "could not map .cinit to a SECTION"  ... and so on...

     

    it looks like to me that the "-l" statement on the first line statement

    above is not taking effect. I even tried -l ./Debug/testcfg.cmd and I

    still be same results.

     

    Under "Show Build Settings...", I set the linker file to C5505.cmd, the user-defined linker file.

     

    Do you have a DSP/BIOS example project that uses a user-defined .cmd file?

    If so, that would be tremendously helpful to me, because none of the sample projects 

    in the DSP/BIOS package use user-defined files. 

     

    Chris