Renesas FSL-T06 User Manual page 52

Flash self-programming library
Table of Contents

Advertisement

Flash Self-Programming Library
5.3.4.9 FSL_GetBootClusterSize
R01US0046ED Rev. 1.01
User Manual
Return types / values
Type
fsl_status_t
1
Status check is performed internally by the firmware
2
Status check is performed by the user
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
In case of user mode call FSL_StatusCheck till function return value is different
from FSL_BUSY.
Example
/* Swap the boot flag, but do not generate a reset signal */
fsl_status_t
status_enu;
status_enu = FSL_ChangeSwapFlag( 0x00 );
while( status_enu == FSL_BUSY )
{
status_enu = FSL_StatusCheck( );
}
/* Error treatment */
...
Description
Function reads current size of protectable boot cluster.
Interface
fsl_status_t FSL_GetBootClusterSize( fsl_u32 *pSize_pu32 )
Arguments
Type
fsl_u32
pSize_pu32
Argument
Operation status when returned from
function call:
Argument
Pointer to buffer of read boot cluster
size
Description
1
FSL_OK
2
FSL_BUSY
FSL_ERR_PROTECTION
FSL_ERR_FLOW
FSL_ERR_INTERNAL
FSL_ERR_WRITE
Description
User Interface (API)
1
1
52

Advertisement

Table of Contents
loading

Table of Contents