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/TMS570LS3137: Question about copy code from flash to ram to run

Part Number: TMS570LS3137

Tool/software: Code Composer Studio

Hi,

When I tested the FMC using the flash API on CCS, I noticed that the flash API was copied to ram to run by copyAPI2RAM.I want to know whether the code must be copied from flash to ram to run?Can the code be run without being copied to ram?What situations need to run in ram,such as when using flash API?

Thanks.

  • Hello,

    TMS570LS3137 has three flash bank: bank 0, bank 1, and bank 7. Bank 0 and Bank 1 acts as program flash to store and execute code. The bank 7 acts as EEPROM to store data. 

    If your code is in flash Bank 0, and you want to erase and program bank 1, you don't need to copy the flash APIs to RAM and execute them from RAM. But if you want to program a sector in bank0, you have to copy the flash APIs to RAM and execute those APIs from RAM.