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.

TMS320F28P650DK: trying to use flash api functions to program the MCU in flash regions. Definitions of Functions called in Flash API are missing

Part Number: TMS320F28P650DK
Other Parts Discussed in Thread: C2000WARE

Tool/software:

Hello team,

currently I am trying to use flash api functions to program the MCU in flash regions.

I have taken the "flashapi_cpu1_128bitprogramming.c" present in the SDK kit for reference. Unfortunately I am facing build issue where compilation is failed due to functions definitions are missing for the below functions.

I did not see the function definitions in any of the files present in the SDK kit, lease let me know the missing files needed for successful compilation.

undefined first referenced
symbol in file
--------- ----------------
Fapi_checkFsmForReady ./source/flashapi_cpu1_128bitprogramming.obj
Fapi_doBlankCheck ./source/flashapi_cpu1_128bitprogramming.obj
Fapi_getFsmStatus ./source/flashapi_cpu1_128bitprogramming.obj
Fapi_issueAsyncCommand ./source/flashapi_cpu1_128bitprogramming.obj
Fapi_issueAsyncCommandWithAddress ./source/flashapi_cpu1_128bitprogramming.obj
Fapi_setupBankSectorEnable ./source/flashapi_cpu1_128bitprogramming.obj

  • Hi Vinayak,

    I have a couple questions to help narrow down the issue:

    • Which version of C2000Ware are you using? Have you imported the entire project?
    • Is the FAPI_F28P65x_EABI_v3.00.02.lib present in the project? Is it being linked properly?
      • Additionally, is the corresponding include path (C2000Ware/libraries/flash_api/f28p65x/include/FlashAPI or ${FlashAPI_INCLUDE_ROOT}) present?

    Best,

    Alex

  • Hi Alex,

    Somehow FAPI_F28P65x_EABI_v3.00.02.lib was excluded from the build environment. When it was included, the build got successful. Thank you very much for your quick support.

    Regards,

    Vinayak