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.

Change the linker cmd file..

Other Parts Discussed in Thread: MOTORWARE

Hi, 

I'm working on lab project "lab02b" for the instaspin-FOC on the launchpadxl-28027. 

The configuration seems to say "flash", but I'm getting errors in the "28027_RAM_lnk.cmd" file. It's a nobrainer that all code isn't going to fit in RAM, but how do I get CCS6 to use another linker CMD file?

  • Roger Wolff said:
    I'm working on lab project "lab02b" for the instaspin-FOC on the launchpadxl-28027. 

    I assume you are referring to project proj_lab02b in Motorware? If so, I see the Flash configuration of the project using the F28027F.cmd linker command file which is the correct one for Flash. I do not see a reference to "28027_RAM_lnk.cmd" in this project.

    Can you confirm the exact location of project you are importing?

  • in the directory
    abra2:~/.wine/drive_c/ti/motorware/motorware_1_01_00_14/sw/solutions/instaspin_foc/boards/boostxldrv8301_revB/f28x/f2802xF/projects/ccs5/proj_lab02b
    I find 28027_RAM_lnk.cmd .
    This doesn't work on the '027, as there is too little RAM.

    A quick grep command provided me with a few files that referred to this file (e.g. the makefile). Changing the important ones didn't work. So I gave up, moved the RAM_lnk.cmd file to a backup, created a link to the right (flash) linker file, and then symlinkedthe 28027_RAM_lnk.cmd to the flash one. Then I got lots of errors because ALL three linker files were automatically included in my project. I then tried right clicking and "remove from build" but ended up removing the RAM file alltogether, leaving only the flash configuration file....
  • Roger Wolff said:
    in the directory
    abra2:~/.wine/drive_c/ti/motorware/motorware_1_01_00_14/sw/solutions/instaspin_foc/boards/boostxldrv8301_revB/f28x/f2802xF/projects/ccs5/proj_lab02b
    I find 28027_RAM_lnk.cmd .

    I do not see 28027_RAM_lnk.cmd in that same directory in my Motorware installation, so maybe it was inadvertently copied over to that directory somehow in your installation.

    In any event, as you said, the correct linker command file for this project is F28027F.cmd. The default project settings are already set up to use this linker cmd, but it looks like that was somehow altered in your set up. But you were on the right track - you can simply delete the  28027_RAM_lnk.cmd from the project directory or right-click on the file and exclude it from build.