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.

TMS320F280049: Why DCSM does not have CLA bit in Z1_GRABRAMR register?

Part Number: TMS320F280049

Hi team,

I noticed a obvious difference between the DCSM of F28004x and F2837x?

In F2837x we have a GRAB_CLA1 bit in Z1_GRABRAMR register to allocate the CLA to a zone, so that the CLA will be able to access to the memory within the same zone.

However, in F28004x we do not have this bit. In this case, how to authorize a CLA to access a bank?

Regards,

Brian

  • Hi Brian,

     

    In F28004x, the CLA is treated as a master just like C28 CPU from a DCSM perspective unlike in F2837x where the CLA was also treated as a resource grabbable by either Zone1 or Zone2 (FYI, this is an enhancement in DCSM as CLA in F28004x is not be tied to any single zone anymore).

     

    In order for the CLA to access a RAM from a particular zone, allocate that memory as a CPU and CLA shared Program/Data memory (with the help of LSxMSEL and LSxCLAPGM registers) and program the OTP to GRAB that particular memory to the desirable Zone (Z1/Z2).

     

    Hope this information helps.

    Thanks & Regards

    Pramod P

  • Hi Pramod P,

    Thanks for your quick response!
    Normally, we copy the CLA related code from Flash to corresponding RAM(Program/Data memory) during intialization. After that, CLA will not access flash any more.
    For this application, do we need to allocate CLA RAMs to the same bank of Flash?

    Regards,
    Brian
  • Hi Brian,

    I don’t understand what you meant when saying ”CLA will not access Flash anymore”. CLA does not have access to Flash anyway (even in F2837x). I am assuming that you will not be copying anymore data from Flash to RAM. Is this what you wanted to convey, please clarify?

    By the way, the answer to your question “do we need to allocate CLA RAMs to the same bank of Flash?” is Yes.

    Thanks & Regards
    Pramod P
  • Hi Pramod P,

    Sorry about the misunderstanding, I know CLA does not have access to Flash. I just want to clarify we will not execute any code from the CLA RAM to access to FLASH after the code is copied after initialization.

    So even if we only need to copy code from FLASH to CLA RAMs, we still need to guarantee these FLASH and RAMs is protected within the same zone. Is that correct?

    Regards,
    Brian
  • That is correct. Both the Flash and RAMs(which is allocated to CLA) should be within the same zone.
  • OK, I got it.

    Thanks Pramod P!