Renesas FSL-T06 User Manual page 38

Flash self-programming library
Table of Contents

Advertisement

Flash Self-Programming Library
5.3.3.2 FSL_ModeCheck
R01US0046ED Rev. 1.01
User Manual
Return types / values
Type
fsl_status_t
fsl_u32
pFlags_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 security flags */
fsl_u32
flags_u32;
fsl_status_t
status_enu;
status_enu = FSL_GetSecurityFlags( &flags_u32 );
/* Error treatment */
...
Description
Function checks whether the FLMD0 pin (hardware protection shield) is pulled up
or not. In case of pulled down no Flash programming is possible.
Interface
fsl_status_t FSL_ModeCheck( void )
Arguments
None
Argument
Function return values:
Pointer to buffer filled with bit
coded security information
Description
FSL_OK
FSL_ERR_FLOW
FSL_ERR_PARAMETER
x1xxxx : Read permission
x0xxxx : Read prohibition
xx1xxx : Write permission
xx0xxx : Write prohibition
xxxx1x : Block erase permission
xxxx0x : Block erase prohibition
xxxxx1 : Permission of boot
block cluster programming
xxxxx0 : Prohibition of boot
block cluster programming
User Interface (API)
38

Advertisement

Table of Contents
loading

Table of Contents