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.

Copy program from Flash to EMIF Async RAM

Other Parts Discussed in Thread: TMS570LC4357

Greetings!

I have to copy my program code residing in Flash memory to EMIF Async RAM. Controller is TMS570LC4357. Plz help me with the steps to do, if this is possible. I use CCSv6 software and TMS570LC43x Hercules Development Kit.

Also let me know the steps to execute the program from EMIF Async RAM directly instead of executing of from Flash memory.


Thanks in advance.

  • Hi Sindhu,

    First, I'd ask why you want to do this.  The performance will be much better when running your code from internal flash and the device has 4 MBytes of flash that is 256 bits wide and about 45 MHz access time.  Whereas your external async SRAM is probably going to be 70-100ns access and only 16 bits wide.   The cache will help but cache misses will be expensive.    I'd at least suggest SDRAM instead of ASYNC.

    Ok so assuming there is a good reason, the TI compiler's linker supports what you want to do. It will create tables for you that include the information for the copy and there is a runtime library function that will actually perform the copy for you.

    See 8.8 Linker-Generated Copy Tables in the assembly tools user's guide.

  • Thank you Anthony ! Your response is of great help. There is a purpose behind moving the code to Async inspite of the access time constraints. Thank you for suggesting SDRAM. I shall try with this input.