Renesas FSL-T06 User Manual page 54

Flash self-programming library
Table of Contents

Advertisement

Flash Self-Programming Library
R01US0046ED Rev. 1.01
User Manual
Arguments
Type
fsl_u32
size_u32
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
/* Set boot cluster size to 0x04 */
fsl_status_t
status_enu;
status_enu = FSL_SetBootClusterSize( 0x04 );
#if FSL_STATUS_CHECK == FSL_STATUS_CHECK_USER
while( status_enu == FSL_BUSY )
{
status_enu = FSL_StatusCheck( );
}
#endif
/* Error treatment */
...
Argument
Boot cluster size (range: 0x00-0xE3)
size_u32
0x00
0x01
0x02-0x03
0x04-0xE3
Argument
Operation status when returned from
function call:
Description
Boot Block
Cluster size
32KB
64KB
96-128KB
160-7296KB
Description
1
FSL_OK
2
FSL_BUSY
FSL_ERR_PARAMETER
FSL_ERR_FLOW
FSL_ERR_PROTECTION
FSL_ERR_INTERNAL
FSL_ERR_WRITE
User Interface (API)
Boot
Swap
Cluster
size
32KB
64KB
128KB
256KB
1
1
54

Advertisement

Table of Contents
loading

Table of Contents