Renesas FSL-T06 User Manual page 56

Flash self-programming library
Table of Contents

Advertisement

Flash Self-Programming Library
5.3.4.13
R01US0046ED Rev. 1.01
User Manual
Arguments
Type
fsl_u32
pID_pu32
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
/* Write ID */
fsl_status_t
status_enu;
fsl_u08
id_u08[] =
FSL_SetID( &id_u08[0] );
#if FSL_STATUS_CHECK == FSL_STATUS_CHECK_USER
while( status == FSL_BUSY )
{
status = FSL_StatusCheck( );
}
#endif
/* Error treatment */
...
FSL_GetOPB
Description
Function reads current OPB settings (4 bytes) from the device.
Argument
Pointer to source data of ID
Argument
Operation status when returned from
function call:
{
0x00, 0x01, 0x02, 0x03, 0x04, 0x05,
0x06, 0x07, 0x08, 0x09, 0x0A, 0x8B
};
/* OCD on -> bit 95 = 1 */
Description
Description
1
FSL_OK
2
FSL_BUSY
FSL_ERR_PARAMETER
FSL_ERR_FLOW
FSL_ERR_INTERNAL
FSL_ERR_WRITE
User Interface (API)
1
1
56

Advertisement

Table of Contents
loading

Table of Contents