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/TMS320F28379D: LSxRAM and GSxRAM sectors merging?

Part Number: TMS320F28379D

Tool/software: Code Composer Studio

Hi,

Previously I was using CPU1 for my complete current implementation where I was running short of data memory for which I merged the GSXRAM sectors in CPU1 linker file when running the code from FLASH as shown in the snap shot below.

Now for some parallel computations, i am trying to utilize CLA1 with CPU1 for which I am using the CLA linker file "2837xD_FLASH_CLA_lnk_cpu" regarding which I have some queries.

1) Does the program use only LSXRAM sectors while program execution using CPU1 and CLA1? Can the GSxRAM sectors also be used and merged when running out of memory?

2) When i will be using CLA linker file, which parts of the LSXRAM and GSXRAM can be merged to accommodate data memory code sections (which in my case is taking a lot of space)? and how? 

Just to describe my case briefly, i am declaring an array of 400 float variables which will be exchanged between CLA and CPU using "pragma" declarations. On the CPU, i am trying to accommodate around 5000 to 7000 float variables. Previously using just CPU1, by merging GSXRAM sectors, i was able to fit the program sections both in program and data memory. Please guide how can this be done using both CPU and the CLA.

  • Hi Hasan,

    Please note that CLA only have access to LSxRAM (for code and data both) and not to GSxRAM so you have to use only LSxRAM for data exchange.

    Regards,

    Vivek Singh

  • Hi Vivek,

    Thanks for prompt support. Ok this is what i am trying to do as well. 400 Floats exchange between CPU1 and CLA1 using LSXRAM is manageable. But what about the GSXRAM sectors of the CPU. Can i accommodate other 4000 floats at the CPU side? They have nothing to do with the CLA. If yes, then  how will the CLA linker file be updated for merging GSXRAM sectors?

    Regards

  • Hasan,

    Why you have to merge two RAMs if the function for both is different. Place 4000 floats in section which is mapped in GSxRAM. May be I am not completely understanding the issue.

    Regards,

    Vivek Singh

  • Vivek,

    No, I am not trying to merge LSXRAM and GSXRAM. I actually want to use them in a CPU-CLA application but don't know whether I need to update linker file "2837xD_FLASH_CLA_lnk_cpu" or declare 4000 floats on GSXRAM sectors using pragma declarations. To clarify once again, 

    For CLA, I am declaring 400 floats which seems manageable considering the data memory size of LSRAM.

    For CPU1, I want to declare more than 4000 floats on GSRAM.

    Regards


     

  • Hasan,

    Hope you were able to solve this issue. If not, I would suggest to refer this link which gives more detail on linker cmd file usage on C2000 devices.

    Regards,

    Vivek Singh