SPRUJB8 April 2024
Initializes the Flash API
Fapi_StatusType Fapi_initializeAPI(
Fapi_FmcRegistersType *poFlashControlRegister,
uint32 u32HclkFrequency
)
poFlashControlRegister [in] | Pointer to the Flash Wrapper Registers' base address. Use FlashTech_CPU0_BASE_ADDRESS. |
u32HclkFrequency [in] | System clock frequency in MHz |
This function is required to initialize the Flash API before any other Flash API operation is performed. This function must also be called if the System frequency or RWAIT is changed.
RWAIT register value must be set before calling this function.
Fapi_Status_Success (success)
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”)