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.

TMS320F2800137: fatal error #1965: cannot open source file "FlashTech_F280013x_C28x.h"

Part Number: TMS320F2800137
Other Parts Discussed in Thread: C2000WARE

Tool/software:

Hi all,

For some reason, my compiler (ti-cgt-c2000_22.6.0.LTS) cant find the "FlashTech_F280013x_C28x.h" header when compiling a application which writes data to flash.

I've used flashapi_ex1_programming as an example.

I can also see the actual file, included in the "includes" directory in the project (see screenshot).

What are some things i can try? This is the only file which can't be found. All other HAL files in driverlib.h can be found. Just CTRL clicking the file also works.

  • Hi,

    Can you please try to add file like #include "FlashTech_F280015x_C28x.h" instead of #include <FlashTech_F280015x_C28x.h>?

    Other than that I don't see any issue.

    Thanks & Regards,

    Rajeshwary

  • Thanks for the reply. This change however made no difference.

  • Hi Christiaan,

    Other than path and change I suggested  I do not see any reason for it not taking the *.h file. Only thing I suspect is  _F280013x is not defined or commented out as below

    Can you please check on this?

    Regards,

    Rajeshwary

  • _F280013x is defined in the predefined symbols properties. The screenshot also doesn't matter since the code defines _F280013x only if it isn't predefined yet. See FlashTech_F280013x_C28.h

    #if !defined(_F280013x)
       #define _F280013x
    #endif

    I do have C2000Ware included in the repository under a submodule instead of the usual C:/ti/ folder.

    I checked all file paths, for example of the ${COM_TI_MOTOR_CONTROL_C2000WARE_SDK_SOFTWARE_PACKAGE_SYMBOLS} symbol. But all seems te be just fine.

    It is really weird to me that driverlib and all of its source/header files can be found. But only the flashAPI don't.

  • For some odd reason. When I include the FlashAPI using a installation of C2000Ware to C:/ti/etcetera, the program compiles just fine.

    The weird thing is, these folders are exactly the same. Only the path is different and their actual location on the disk (of course). As you can see in the screenshot, both folders are found just fine...

    What causes this?

  • Hi Christiaan,

    Not sure what could be reason for this behaviour. But glad that your issue is resolved.

    Regards,

    Rajeshwary

  • This actually did not resolve my issue, since i don't want to use the locally installed SDK.

    Another thing which makes it even weirder. The program compiles just fine when i include "FlashTech.h", but when I include "FlashTech_F280013x_C28.h" the program does not compile and "FlashTech_F280013x_C28.h" can't be opened... The files are in the same folder!

    I don't think including "FlashTech.h" instead of "FlashTech_F280013x_C28.h" is an proper solution, since "FlashTech_F280013x_C28.h" defines some macro's which i think are necessary for the flash API to work (please correct me if im wrong).

  • Hi Christiaan,

    I will review it and get back to you.

    Thanks & regards,

    Rajeshwary