SPRUJ27C November 2022 – November 2023 TMS320F280033 , TMS320F280034 , TMS320F280034-Q1 , TMS320F280036-Q1 , TMS320F280036C-Q1 , TMS320F280037 , TMS320F280037-Q1 , TMS320F280037C , TMS320F280037C-Q1 , TMS320F280038-Q1 , TMS320F280038C-Q1 , TMS320F280039 , TMS320F280039-Q1 , TMS320F280039C , TMS320F280039C-Q1
API Function | Description |
---|---|
Fapi_initializeAPI() | Initializes the API for first use or frequency change |
API Function | Description |
---|---|
Fapi_setActiveFlashBank() | Initializes Flash Memory Controller (FMC) and banks for an erase or program command |
Fapi_issueBankEraseCommand() |
Issues bank erase command to the Flash State Machine for the given bank address after applying the sector mask. |
Fapi_issueAsyncCommandWithAddress() | Issues an erase sector command to FSM for the given address |
Fapi_issueProgrammingCommand() | Sets up the required registers for programming and issues the command to the FSM |
Fapi_issueProgrammingCommandForEccAddress() | Remaps an ECC address to the main data space and then call Fapi_issueProgrammingCommand() to program ECC |
Fapi_issueFsmSuspendCommand() | Suspends FSM commands program data and erase sector |
Fapi_issueAsyncCommand() | Issues a command (Clear Status, Program Resume, Erase Resume, Clear_More) to FSM for operations that do not require an address |
Fapi_checkFsmForReady() | Returns whether or not the Flash state machine (FSM) is ready or busy |
Fapi_getFsmStatus() | Returns the FMSTAT status register value from the Flash memory controller |
API Function | Description |
---|---|
Fapi_doBlankCheck() | Verifies specified Flash memory range against erased state |
Fapi_doVerify() | Verifies specified Flash memory range against supplied values |
Fapi_calculatePsa() | Calculates a PSA value for the specified Flash memory range |
Fapi_doPsaVerify() | Verifies a specified Flash memory range against the supplied PSA value |
In order to improve the flash read performance in the flash API’s read functions, the data cache in the flash wrapper (Flash Module Controller – FMC) is enabled in the read functions. Before the data cache is enabled, the read functions save the previous configuration of the data cache (as set by the user application using the flash initialization routine in the driverlib) and restore the same after the flash reads in these functions are complete.
API Function | Description |
---|---|
Fapi_getLibraryInfo() | Returns the information specific to the compiled version of the API library |
API Function | Description |
---|---|
Fapi_flushPipeline() | Flushes the data cache in FMC |
Fapi_calculateEcc() | Calculates the ECC for the supplied address and 64-bit word |
Fapi_isAddressEcc() | Determines if the address falls in ECC ranges |
Fapi_remapEccAddress() | Remaps an ECC address to corresponding main address |
Fapi_calculateFletcherChecksum() | Function calculates a Fletcher checksum for the memory range specified |
Note that Fapi_getDeviceInfo() and Fapi_getBankSectors() are removed in TMS320F28003x Flash API since users can obtain this information (for example, number of banks, pin count, number of sectors, and so on) from other resources provided in the device-specific technical reference manual.
The Fapi_UserDefinedFunctions.c file is not provided anymore since the functions in that file are now merged in the Flash API Library. Review Key Facts For Flash API Usage for information about servicing the watchdog function while using Flash API.