Renesas FSL-T06 User Manual page 50

Flash self-programming library
Table of Contents

Advertisement

Flash Self-Programming Library
5.3.4.6 FSL_ChangeSwapState
5.3.4.7 FSL_GetSwapFlag
R01US0046ED Rev. 1.01
User Manual
Description
Function swaps the boot cluster 0 and boot cluster 1 physically without setting
the boot flag. After reset the boot cluster will be activated regarding the boot flag.
Interface
fsl_status_t FSL_ChangeSwapState( void )
Arguments
None
Return types / values
Type
fsl_status_t
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
/* Swap boot cluster */
fsl_status_t
status_enu;
status_enu = FSL_ChangeSwapState( );
/* Error treatment */
...
Description
Function reads the current value of the boot swap flag from the extra area.
Interface
fsl_status_t FSL_GetSwapFlag ( fsl_u32 *pSwapFlag_pu32 )
Argument
Function return values:
Description
FSL_OK
FSL_ERR_FLOW
FSL_ERR_PROTECTION
FSL_ERR_INTERNAL
FSL_ERR_WRITE
User Interface (API)
50

Advertisement

Table of Contents
loading

Table of Contents