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/TMS320F28027: Flash Question, HELP PLEASE.

Part Number: TMS320F28027


Tool/software: Code Composer Studio

Hey guys, i have some weeks programming some things in C2000 Launchpadxl-f28027, but still don't understand the functions of these statements, and it would be great if someone c

ould tell me what they do in the program.

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

What does it means this sentence? ^^

and what makes this sentence in the program:

FLASH_setup(myFlash);

If someone could explain me this, or can tell me where i can read to get an explanation, it would be great.

Regards from Venezuela.

  • Hi,

    Eliomar Conde said:

    ould tell me what they do in the program.

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

    This function copies time critical code and Flash setup code to RAM

    Eliomar Conde said:
    FLASH_setup(myFlash);

    The above is to initialize flash control registers. This function MUST be executed out of RAM. Executing it out of OTP/Flash will yield unpredictable results.

    Regards,

    Gautam