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.

TMS320F28384S: Linker Command File documentation - Potential update...

Expert 1700 points
Part Number: TMS320F28384S


Hello,

I am referring to the following web site:

https://software-dl.ti.com/ccs/esd/documents/sdto_cgt_Linker-Command-File-Primer.html

where it is stated:

“If you see code in your linker command file which is not described in this article, please post to the E2E forum about it. The forum reply will usually result in an addition or change to this article.”

 

Comment 1

I believe the LOAD_SIZE instruction is not being explained inside chapter ‘Load at One Address, Run from a Different Address’ and it may be worth to be at least mentioned.

https://software-dl.ti.com/ccs/esd/documents/sdto_cgt_Linker-Command-File-Primer.html#load-at-one-address-run-from-a-different-address

Like in this example:

ipcConst
{
   driverlib.lib<ipc.obj>(.const)
} LOAD = FLASH5, RUN = RAMLS0,
LOAD_START(constLoadStart),
LOAD_SIZE(constLoadSize),
RUN_START(constRunStart), ALIGN(8)

 

Comment 2

I also identified memory alignment instructions in my linker command file (in the above example the ALIGN(8)) and I wonder if the website ‘software-dl.ti.com/.../sdto_cgt_Linker-Command-File-Primer.html’ should also explain the memory alignment option?

 

Thanks,

Inno

  • Hi Inno,

    Thank you for the feedback. We will get this updated.

    Also, you can refer to the document  TMS320C28x Assembly Language Tools User Guide for more details on linker command file functions.

    Regards,

    Veena

  • I am happy to add another part to the article Linker Command File Primer based on this example ...

    ipcConst
    {
       driverlib.lib<ipc.obj>(.const)
    } LOAD = FLASH5, RUN = RAMLS0,
    LOAD_START(constLoadStart),
    LOAD_SIZE(constLoadSize),
    RUN_START(constRunStart), ALIGN(8)

    Where does this example come from?  Did you, or someone on your team, write it?  If it comes from a TI example, please tell me where to find it.

    I also identified memory alignment instructions in my linker command file (in the above example the ALIGN(8)) and I wonder if the website ‘software-dl.ti.com/.../sdto_cgt_Linker-Command-File-Primer.html’ should also explain the memory alignment option?

    I can explain what ALIGN(8) does.  I cannot explain why it is necessary.  That is related to some constraint of the memory sub-system, or something similar, for which I lack expertise.

    Thanks and regards,

    -George