Renesas FSL-T06 User Manual page 44

Flash self-programming library
Table of Contents

Advertisement

Flash Self-Programming Library
5.3.3.8 FSL_SetFSW
R01US0046ED Rev. 1.01
User Manual
Example
/* Read Flash Shield Window range */
fsl_status_t
status_enu;
fsl_u32
blockStart_u32;
fsl_u32
blockEnd_u32;
status_enu = FSL_GetFSW( &blockStart_u32, &blockEnd_u32 );
/* Error treatment */
...
Description
Function sets a new Flash shield window to protect the range of blocks from
unwanted Flash operations.
Interface
fsl_status_t FSL_SetFSW( fsl_u32 blockNoStart_u32,
Arguments
Type
fsl_u32
BlockNoStart_u32
fsl_u32
BlockNoEnd_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.
fsl_u32 blockNoEnd_u32 )
Argument
Starting block number of FSW
Ending block number of FSW
Argument
Operation status when returned from
function call:
Description
Description
1
FSL_OK
2
FSL_BUSY
FSL_ERR_PARAMETER
FSL_ERR_PROTECTION
FSL_ERR_FLOW
FSL_ERR_INTERNAL
FSL_ERR_WRITE
User Interface (API)
1
1
44

Advertisement

Table of Contents
loading

Table of Contents