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.

TMS320F28379D: .cmd file configuration

Part Number: TMS320F28379D

I am using two seperate .cmd files for cpu1 and cpu2 having similar configurations in both cmd files mostly. 

1. I tried to write a data in a particular memory location using cpu1 and then checked the same location in cpu2 but the data was absent. 

2. Are both CPU's using different memory? If not then why the data written in cpu1 location is not reflecting in cpu2 with same location?

  • Hi Ganeshapandi,

    It depends on the memory which is being used. For example, the LSRAMs, MRAMs are available separately in each of the cores. Which means, they are physically different RAM memories, but uses the same addresses by the CPU1/2. But in case of GSRAMs, they are shared memories.

    Can you tell us which memory location you faced this issue?

    Regards,

    Veena

    1. Why didn't CLA examples(dual core) in C2000 folder present for both the CPU1_CLA1 and CPU2_CLA1 in a single example? It only contains  CPU2_CLA1 (cla_asin and cla_iir2p2z)
    2. Why is the file  "2837xD_RAM_CLA_lnk_cpu2" not available  for CPU2?
    3. Is the cmd file configuration for CLA same for CPU2 also? 

  • Hi Ganeshapandi,

    Ganeshapandi K said:
    Why CLA examples(dual core) use "2837xD_RAM_lnk_cpu1.cmd" file instead of  "2837xD_RAM_CLA_lnk_cpu1" file?  For using CLA, .cmd file modification is necessary isn't it?

    CLA linker command file includes the special sections needed by the CLA to work. In case of dual core CLA examples, CPU1_CLA is not being used. CPU1 just initializes the the clocks and the actual example is run on the CPU2 side. Hence CPU1 project uses the normal linker command file and the CPU2 project uses the CLA linker command file

    Ganeshapandi K said:
    Why is the file  "2837xD_RAM_CLA_lnk_cpu2" not available  for CPU2?

    The dual core examples uses the same 2837xD_RAM_CLA_lnk_cpu1 linker command file on the CPU2 side as well. But you can define your own 2837xD_RAM_CLA_lnk_cpu2.cmd. There is no major difference between CPU1 and CPU2, except some added additional sections and the starting address of usable M0 RAM is different

    Ganeshapandi K said:
    Is the cmd file configuration for CLA same for CPU2 also? 

    As mentioned above, today we are using the same CLA linker command file for both CPU1 and CPU2. Mainly, we need the CLA specific sections assigned to proper memory locations

    Regards,

    Veena

  • Can I configure CPU1_CLA1 and CPU2_CLA1 together at the same time? If yes, will there be any additional configuration ?

    thank you 

  • Sure. You can use both the CLAs at the same time. They are totally different instances and can run independently.  Note that you need to use the CLA linker command file.

    CLA uses some extra section to store the program and data. This needs to be configured separately from CPU1 and CPU2.

    Regards,

    Veena