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/TMS320F280021: TMS320F280021

Part Number: TMS320F280021
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Hi, I have down load C2000Ware_3_01_00_00 from TI web to learn TI's DSP programing. and in the example named "gpio_ex2_toggle", there was some codes in file "device.c" I could not fully understand.

#ifdef _FLASH
    //
    // Copy time critical code and flash setup code to RAM. This includes the
    // following functions: InitFlash();
    //
    // The RamfuncsLoadStart, RamfuncsLoadSize, and RamfuncsRunStart symbols
    // are created by the linker. Refer to the device .cmd file.
    //
    memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, (size_t)&RamfuncsLoadSize);
 
    //
    // Call Flash Initialization to setup flash waitstates. This function must
    // reside in RAM.
    //
    Flash_initModule(FLASH0CTRL_BASE, FLASH0ECC_BASE, DEVICE_FLASH_WAITSTATES);
#endif

where is _FLASH?

thank you very much!

  • Hi,

    user5246008 said:
    where is _FLASH?

    _FLASH is a predefined symbol defined for FLASH configuration of the project. Predefined symbols for a project can be checked from: Project-> Properties ->Build->C2000 Compiler -> Predefined Symbols

    Thanks
    Vasudha