SPRUJB8 April 2024
Initializes the Flash Wrapper for erase and program operations.
Fapi_StatusType Fapi_setActiveFlashBank(
Fapi_FlashBankType oNewFlashBank
)
oNewFlashBank [in] | Bank number to set as active. Always use Fapi_FlashBank0 irrespective of which flash bank is targeted for erase/program operations on any CPU. |
This function sets the Flash Wrapper for further operations to be performed on the bank. This function is required to be called after the Fapi_initializeAPI() function and before any other Flash API operation is performed.
Irrespective of which flash bank is targeted for the erase and program operations, the user application needs to call this only once and that can be with Fapi_FlashBank0.
Fapi_Status_Success (Success)
Fapi_Status_FsmBusy (failure: FSM busy with another command)
Fapi_Error_InvalidBaseRegCntlAddress (failure: Flash control register base address provided by user does not match the expected address)
Fapi_Error_InvalidBank (failure: Bank specified does not exist on device)
Fapi_Error_InvalidHclkValue (failure: System clock does not match specified wait value)
(Please refer to the flash programming example provided in C2000Ware at “C2000Ware_.....\driverlib\F28P65x\examples\....\flash\flashapi_128bit_programming\flashapi_cpu1_128bitprogramming.c”)