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/TMS320F28027F: Code

Part Number: TMS320F28027F

Tool/software: Code Composer Studio

What does the following do? 

#ifdef _FLASH
memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, (size_t)&RamfuncsLoadSize);
#endif

  • Hi Anamika,

    This is used to run the firmware from Flash. This part of code can be enabled by right-clicking on Project -> Build Configuration -> Set Active -> Flash

    Regards,
    Gautam
  • Hi,

    memcpy code gets executed only in "Flash" configuration ("_FLASH" symbol will be defined)
    In FLASH configuration, the memcpy is used to copy the functions from FLASH to RAM during the runtime.

    Few functions needs to be executed from RAM for a faster execution. Those functions are placed in ram section by using a pragma
    Ex:- #pragma CODE_SECTION(FUNCTION_NAME, "ramfuncs");

    Please let me know if you need anything else.

    Thanks,
    Katta