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.

CCS V8.1 for 2812 - Module Ordering in Memory

Part Number: TMS320F2812

Tool/software: Code Composer Studio

Previously, I was importing a legacy project from CCS V3.3 to CCS V8.1. With your help, I was able to get my legacy v3.3 projects to build without errors or warnings in CCs V8.1. The problem I am now chasing is trying to get the linked output to match up with the desired memory locations. I have used the Link Order tab to set my run-time library (rts2800_ml.lib) to be placed first in the linked out put. My desire is to have the boot28.asm.obj from the library to be the first module located in flash memory. However, I am getting other project modules, not in the library, placed ahead of the boot28 module. Also, the first module from the rts library is "fd_mpy28.asm.obj" followed by the boot28.asm.obj. The Link Order tab is set up as detailed below:

-lrts2800_ml.lib

lib/Flash2812_API_V210/lib/Flash2812_API_V210.lib

lib/IQmath/v15a/lib/IQmath.lib

CP_FLASH.cmd

Also, are there other mechanisms within CCS V8.1 to set the order that modules are built in the project? Thanks for your help.

Terry Stifflemire

  • Please take a look at this FAQ that describes how to tell the linker to place a specific piece of code or data before the rest of it. This has to be done in the linker command file. Specifying the link order alone will not allow you to achieve the level of ordering you are looking for.