Renesas FSL-T06 User Manual page 36

Flash self-programming library
Table of Contents

Advertisement

Flash Self-Programming Library
5.3.2.4 FSL_StatusCheck
Note
R01US0046ED Rev. 1.01
User Manual
fsl_u32
pDest
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
/* Read 64 words from address 0x00000000 onwards */
fsl_status_t
status_enu;
fsl_u32
buf_u32[64];
status_enu = FSL_Read( 0x00000000, &buf_u32[0], 64 );
#if FSL_STATUS_CHECK == FSL_STATUS_CHECK_USER
while( status_enu == FSL_BUSY )
{
status_enu = FSL_StatusCheck( );
}
#endif
/* Error treatment */
...
Description
This function handles the complete state machine. It shall be called frequently,
but the calling style depends on the user application (refer to chapter 4.4 User
code execution during Self-Programming).
This command is only available in the user mode.
Interface
fsl_status_t FSL_StatusCheck( void )
Arguments
None
Return types / values
Type
fsl_status_t
Pointer to buffer filled with read data
Argument
Function return values:
FSL_ERR_FLOW
FSL_ERR_PARAMETER
FSL_ERR_INTERNAL
Description
FSL_OK
FSL_IDLE
User Interface (API)
1
36

Advertisement

Table of Contents
loading

Table of Contents