Download Flash Self-Programming Library
Transcript
Flash Self-Programming Library User Interface (API) Pre-conditions Library must be initialized (call function FSL_Init), copied (call function FSL_CopySections) and active (call function FSL_FlashEnv_Activate). Additionally the library must be informed about FBUS clock by using function FSL_SetFrequency. Post-conditions None Example /* Read device name */ fsl_u32 device_u32; fsl_status_t status_enu; status_enu = FSL_GetDevice( &device_u32 ); /* Error treatment */ ... 5.3.4.3 FSL_GetBlockCnt Description Function returns number of blocks of the device. Interface fsl_ status_t FSL_GetBlockCnt( fsl_u32 *pBlockCnt_pu32 ) Arguments Type fsl_u32 Argument pBlockCnt_pu32 Description Pointer to buffer of read block count information Return types / values Type Argument Description Function return values: fsl_status_t fsl_u32 pBlockCnt_pu32 FSL_OK FSL_ERR_FLOW FSL_ERR_PARAMETER Pointer to buffer filled with block count information Pre-conditions Library must be initialized (call function FSL_Init), copied (call function FSL_CopySections) and active (call function FSL_FlashEnv_Activate). Additionally the library must be informed about FBUS clock by using function FSL_SetFrequency. Post-conditions None R01US0046ED Rev. 1.01 User Manual 47