This following section is taken from the F29H85x Flash API Reference Guide and describes the flow for using various API functions.
- After the device is first powered up, the Fapi_initializeAPI() function must be called before any other API function (except for the Fapi_getLibraryInfo() function) can be used. This procedure configures the Flash Wrapper based on the user specified operating system frequency.
- Before performing a Flash operation for the first time, the Fapi_setActiveFlashBank() function must be called.
- If the system operating frequency is changed after the initial call to the Fapi_initializeAPI() function, this function must be called once again before any other API function (except the Fapi_getLibraryInfo() function) can be used. This procedure updates the API internal state variables.