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.

Error while compiling code with InitFlash command.

Other Parts Discussed in Thread: TMS320F2808

I am using TMS320F2808 for running my program. But with the inclusion of InitFlash() and MemCopy() the whole program is not compiled and showing errors as shown below. Any help regarding the solution to the problem will be of great help to me.

 

"Description    Resource    Path    Location    Type unresolved symbol _MemCopy, first referenced in C:/tidcs/c28/DSP280x/v170/DSP280x_examples/epwm_deadband/Debug/Example_280xEPwmDeadBand.obj    Example_280xEPwmDeadBand             C/C++ Problem"

"Description    Resource    Path    Location    Type unresolved symbol _RamfuncsLoadEnd, first referenced in C:/tidcs/c28/DSP280x/v170/DSP280x_examples/epwm_deadband/Debug/Example_280xEPwmDeadBand.obj    Example_280xEPwmDeadBand " 

Regards

Saurav

  • Suarav,

    You'll need to ensure the file "DSP280x_MemCopy.c" is included in your project, or referenced in a place CCS can find it. I think that's the source of the first error.

    Also, you'll need to have the region related symbols used as arguments to MemCopy() specified in your linker command file. Something like this:

    ramfuncs : LOAD = FLASHD,
    RUN = RAML0,
    LOAD_START(_RamfuncsLoadStart),
    LOAD_END(_RamfuncsLoadEnd),
    RUN_START(_RamfuncsRunStart),
    PAGE = 0

    I see you are using v170 of the header file examples for this device. Take a look in the example "Example_2808_Flash" to see how this is done.

    Regards,

    Richard