Renesas FSL-T06 User Manual page 53

Flash self-programming library
Table of Contents

Advertisement

Flash Self-Programming Library
5.3.4.10
R01US0046ED Rev. 1.01
User Manual
Return types / values
Type
fsl_status_t
fsl_u32
pSize_pu32
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 boot cluster size */
fsl_u32
size_u32;
fsl_status_t
status_enu;
status_enu = FSL_GetBootClusterSize( &size_u32 );
/* Error treatment */
...
FSL_SetBootClusterSize
Description
Function sets protectable boot cluster size in the range from 0x00 to 0xE3 (see
also function FSL_SetBootClusterProtectFlag to enable protection).
Interface
fsl_status_t FSL_SetBootClusterSize( fsl_u32 size_u32 )
Argument
Function return values:
Pointer to buffer filled with boot cluster
size in number of blocks.
size_u32
0x00
0x01
0x02-0x03
0x04-0xE3
Description
FSL_OK
FSL_ERR_FLOW
FSL_ERR_PARAMETER
Boot Block
Cluster size
32KB
64KB
96-128KB
160-7296KB
User Interface (API)
Boot
Swap
Cluster
size
32KB
64KB
128KB
256KB
53

Advertisement

Table of Contents
loading

Table of Contents