Renesas FSL-T06 User Manual page 34

Flash self-programming library
Table of Contents

Advertisement

Flash Self-Programming Library
5.3.2.2 FSL_Write
R01US0046ED Rev. 1.01
User Manual
Example
/* Erase check block 3 to 20 */
fsl_status_t
status_enu;
status_enu = FSL_Erase( 3, 20 );
#if FSL_STATUS_CHECK == FSL_STATUS_CHECK_USER
while( status_enu == FSL_BUSY )
{
status_enu = FSL_StatusCheck( );
}
#endif
/* Error treatment */
...
Description
Function writes the specified number of words from a buffer to consecutive Flash
addresses starting at the specified address.
Interface
fsl_status_t FSL_Write( fsl_u32 *pAddSrc_pu32,
Arguments
Type
fsl_u32
pAddSrc_pu32
fsl_u32
addDest_u32
fsl_u32
length_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
fsl_u32 addDest_u32,
fsl_u32 length_u32 )
Argument
Pointer to buffer of data to be written
64 word aligned destination address of
data to be written
64 word aligned length of data in words
Argument
Operation status when returned from
function call:
Description
Description
1
FSL_OK
2
FSL_BUSY
FSL_ERR_FLOW
FSL_ERR_PROTECTION
FSL_ERR_PARAMETER
FSL_ERR_WRITE
FSL_ERR_INTERNAL
User Interface (API)
1
1
34

Advertisement

Table of Contents
loading

Table of Contents