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.

TMS320F28069: CLA program ram ran out. How use ram efficiently.

Part Number: TMS320F28069

I am migrating a c28 code to CLA. while doing it i ran out the program ram. 
Did some searching on this forum and found out that ram can be utilized efficiently by copying only parts of the CLA code in flash to ram. But it didnt gave any information about how to do that. 
Can someone explain me how to do that please.

In my program, these is considerable amount of initializing code, which only run once. can i keep that in flash and only copy the periodic code to the CLA program ram?

following image shows each sections of the CLA code. 
CLA task 8 and initialize variables and some other onetime code can be keep in the flash. Guide me how to do that please. 


  • Hello, 

    What you are describing is overlaying functions in memory depending on their usage. It is described here: en.wikipedia.org/.../Overlay_(programming)

    There is an application note that describes a technique using copy tables:

    • www.ti.com/lit/SPRAA46

    For the CLA you will need to insure the memory is not being used by the CLA before the C28x updates the memory. 

    Cheers

    Lori