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-F280049C: Flash API include not found

Guru 55673 points
Part Number: LAUNCHXL-F280049C
Other Parts Discussed in Thread: C2000WARE

Hello,

The Flash API Reference guide (Literature Number: SPNU628A February 2017–Revised December 2017)

Shows an include can't seem to find C2000ware driverlib folders (#include “F021_F28004x_C28x.h”)

The Fapi_xx() calls can erase, read, write, flash sectors to name a few but the Fapi functions are not found by this include name copy/past from document. 

Thanks for updated info since flash.h does not have ability of FSM on FMC and other advanced calls.

  • an include can't seem to find C2000ware driverlib folders (#include “F021_F28004x_C28x.h”)

    It's here:

    C:\ti\c2000\C2000Ware_4_02_00_00\libraries\flash_api\f28004x\include\FlashAPI\F021_F28004x_C28x.h

  • Hi Kler,

    Was expecting under driverlib or device_support F280049x in the SDK 4.01 C2000ware files.

    Also motor control SDK 4.01 C2000ware Lin.h (f28004x_globalvariabledefs.c) is causing horrible compiler errors, had to comment out lin.h and lin.c to compile without errors.

    Path: C:\ti\c2000\C2000Ware_MotorControl_SDK_4_00_00_00\c2000ware\device_support\f28004x\headers\source

    Thank you 

  • BTW: I copied the include from the FAPI User Guide, were not quote marks are two backticks will not resolve.  Why anyone use backticks '' for quote mark " beyond all human comprehension Grin...

  • Hi GI,

    Thanks for your question, glad that you found a solution. Will pass on the changes needed for the documentation. 

    Thanks,

    Charles

  • Hi Charles,

    There is another Fapi forum post with 12 reply. Wonder if poster did the same copy from text, Fapi would not resolve any commands.

    Now It does resolve some but the one command it refuses to resolve am clueless as to why. What might be stopping below command from being resolved? I imported the library and other files into the project and added include paths to all Fapi folders. Do we need both EABI and FPU32 or either one will suffice for below command found in F021.h ? 

    /is07_speed_control_eabi/utils/lib/F021_API_F28004x_EABI.lib

    /is07_speed_control_eabi/utils/lib/F021_API_F28004x_FPU32_EABI.lib

    oReturnCheck = Fapi_issueAsyncCommandWithAddress(Fapi_EraseSector, 0x09C000); 

  • Hi GI,

    I will have to look into the Fapi commands and their need for EABI and FPU32, get back to you by Monday.

    Thanks,

    Charles

  • Hi Charles,

    Another issue seems FAPI lacks the ability to address a single block within any sector. There are 4096 byes in each sector, with 32 blocks of 128 bytes being addressable block size and number of blocks 32/0x20 in any sector and 128 total sectors in 4 blocks. It seems FAPI needs ability to address and erase individual blocks within sectors for creating randomized nonvolatile parameters storage space. Is that something on the ToDo list?

    Update: Since 128 blocks requires 4 sectors and the sector address (Pointer) was the missing key FAPI not resolving erase sector address. The worst part being the entire sector (32 blocks) is erased for any single parameter block written.