SPRUJC5 April 2024 TMS320F28P550SJ , TMS320F28P559SJ-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 TMS320F28P55x Real-Time Microcontrollers Data Manual for TMS320F28P55x.
Sample Implementation (See the flash programming example provided in C2000Ware at “C2000Ware_.....\driverlib\f28p55x\examples\flash\flashapi_128bit_programming.c” for TMS320F28p55x.
See the flash programming example provided in C2000Ware at “C2000Ware_.....\driverlib\f28p55x\examples\flash\flashapi_512bit_programming.c” for TMS320F28P55x).