SPRUJ96A November 2023 – April 2024 TMS320F2800152-Q1 , TMS320F2800153-Q1 , TMS320F2800154-Q1 , TMS320F2800155 , TMS320F2800155-Q1 , TMS320F2800156-Q1 , TMS320F2800157 , TMS320F2800157-Q1
Issues an erase command to the Flash State Machine along with a user-provided sector address.
Fapi_StatusType Fapi_issueAsyncCommandWithAddress(
Fapi_FlashStateCommandsType oCommand,
uint32 *pu32StartAddress
)
oCommand [in] | Command to issue to the FSM. Use Fapi_EraseSector |
pu32StartAddress [in] | Flash sector address for erase operation |
This function issues an erase command to the Flash State Machine for the user-provided sector address. This function does not wait until the erase operation is over; it just issues the command and returns back. Hence, this function always returns success status when the Fapi_EraseSector command is used. The user application must wait for the Flash Wrapper to complete the erase operation before returning to any kind of Flash accesses. The Fapi_checkFsmForReady() function can be used to monitor the status of an issued command.
Also, the user application should use the Fapi_doBlankCheck() function to verify that the Flash is erased.
Fapi_Error_InvalidAddress (failure: User provided an invalid address. For the valid address range), see the TMS320F280013x Real-Time Microcontrollers Data Manual for TMS320F280013x. For TMS320F280015x see the TMS320F280015x Real-Time Microcontrollers Data Manual.
Sample Implementation (See the flash programming example provided in C2000Ware at “C2000Ware_.....\driverlib\f280013x\examples\flash\flashapi_ex1_programming.c” for TMS320F280013x.
See the flash programming example provided in C2000Ware at “C2000Ware_.....\driverlib\f280015x\examples\flash\flashapi_ex1_programming.c” for TMS320F280015x).