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.

Renaming linker cmd file generated a linker warning

Expert 1960 points
Other Parts Discussed in Thread: CONTROLSUITE

Hi TI CCS gurus,

I have a simple C28 project derived from flash programming example. It builds and runs fine without any issue or warning. However, after I simply renamed the linker cmd file from its default name (2837xD_xxx.cmd) to anything different (e.g. xxx.cmd), I'd get a warning from linker: 

#1068-D no matching section.

IF I name it back, the warning would be gone. I tried it back and forth several times, always saw the issue. I tried renaming it inside CCS project explorer and Windows explorer, no difference.  I'd like to use a different name, but more curious why the same cmd file would product different results depending on names? Does CCS treat cmd file named as "C2837xD_xxx" differently or what? I'd appreciate any advise. Thanks!

  • Hi Shef,
    How is the .cmd file being referenced? Is it physically added to the project or is it referenced in the project properties (linker setting)?

    Thanks
    ki
  • Thanks for replying promptly! The cmd file is physically added/ located in the project folder. It used to be in the linker property settings pointing to controlSuite. I removed it and copied the cmd file to the project folder so that I can freely modify it. It has been modified many times in local folder and works fine. But after I tried to rename it, it gives me a warning, although seems to still working. Any idea why?
  • Can you attach the project? At the very least I'd like to see the project metadata file (.*project files)

    Thanks
    ki
  • Hi Ki,
    I sent you my project file via email a week ago. Did you receive it, and is anything looking into this issue? Please advise if there is any update. Thanks!
  • Hi Shef,
    Sorry for the delay. I missed your e-mail. I checked my inbox again and found it. I imported it and am trying to build it. I get a bunch of linker errors because 2837xD_RAM_lnk_cpu1_USB.cmd and 2837xD_SBLapp_cpu1.cmd define the same memory regions. Are both supposed to be part of the build?

    Thanks
    ki
  • Hi Ki,
    I just replied you via a detailed email. This project runs in flash therefore should set to flash configuration, not using RAM cmd file. I wonder why it went to RAM config though.