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.

LAUNCHXL-F280025C: FLASHAPI Include and Lib Path

Part Number: LAUNCHXL-F280025C
Other Parts Discussed in Thread: C2000WARE

Hi,

When included FLASHAPI both include and library path, on build project, I have got below errors : 

"/Users/dannychan/ti/C2000Ware_MotorControl_SDK_4_02_01_00/libraries/math/include/math.h", line 217: error #20: identifier "float32_t" is undefined

Danny

  • I suspect this may have to do with a known incompatibility where the MC SDK libraries and the Flash API both have header files called "Types.h"

    C:\ti\c2000\C2000Ware_MotorControl_SDK_x_xx_xx_xx\libraries\utilities\types\include\types.h

    C:\ti\c2000\C2000Ware_MotorControl_SDK_x_xx_xx_xx\c2000ware\libraries\flash_api\f28002x\include\FlashAPI\Types.h

    You may want to consider renaming one of them or changing the #includes and #include path to allow for more precision (e.g. "#include "FlashAPI/Types.h")

    Whitney

  • Hi Whitney,

    yes, I can rename 

    C:\ti\c2000\C2000Ware_MotorControl_SDK_x_xx_xx_xx\c2000ware\libraries\flash_api\f28002x\include\FlashAPI\Types.h

    not rename 

    C:\ti\c2000\C2000Ware_MotorControl_SDK_x_xx_xx_xx\libraries\utilities\types\include\types.h

    it work now, thanks ! 

    Danny

  • Hi Whitney,

    by rename

    C:\ti\c2000\C2000Ware_MotorControl_SDK_x_xx_xx_xx\c2000ware\libraries\flash_api\f28002x\include\FlashAPI\Types.h

    it can prevent incompatibility Type.h call, but I need FLASH function or flash type e.g. Fapi_StatusType or Fapi_getFsmStatus()

    so the only way is to rename 

    C:\ti\c2000\C2000Ware_MotorControl_SDK_x_xx_xx_xx\libraries\utilities\types\include\types.h

    but after rename the types.h, I have got tons of errors because math.h call this types.h ... 

    "/Users/xxx/ti/C2000Ware_MotorControl_SDK_4_02_01_00/libraries/math/include/math.h", line 65: fatal error #1965: cannot open source file ."libraries/utilities/types/include/types.h"

    "/Users/dannychan/ti/C2000Ware_MotorControl_SDK_4_02_01_00/libraries/filter/filter_fo/include/filter_fo.h", line 70: error #20: identifier "float32_t" is undefined

    Danny

  • Hi Whitney,

    ${SDK_ROOT} is included 

    in math.h with 

    #include "libraries/utilities/types/include/types.h"

    still shown float32_t is undefined ....

    Danny

  • Hi Whitney,

    I refer your post below, it work now, thank for your support 

    e2e.ti.com/.../4169757

    Danny