English
Language : 

UM1635 Datasheet, PDF (15/42 Pages) STMicroelectronics – Standard software driver for C90FL2 Flash
UM1635
API specification
2.6.4
Comments
If the blank checking fails, the first failing address is saved to *pFailAddress and the failing data in
Flash is saved to *pFailData. The contents pointed by pFailAddress and pFailData are updated only
when there is a non-blank location in the checked Flash range.
Assumptions
It assumes that the Flash block is initialized using the ‘FlashInit()’ API.
FlashProgram()
Description
This function programs the specified Flash areas with the provided source data. Input
arguments together with relevant Flash module status is checked and relevant error code is
returned if there is any error.
Prototype
UINT32 FlashProgram (PSSD_CONFIG pSSDConfig,
UINT32 dest,
UINT32 size,
UINT32 source,
void (*CallBack)(void));
Arguments
Argument
pSSDConfig
dest
size
source
CallBack
Table 15. Arguments for FlashProgram()
Description
Range
Pointer to the SSD
Configuration Structure.
The values in this structure are chip-dependent.
Please refer to Section 2.3 for more details.
Destination address to be
programmed in Flash
memory.
Any accessible address aligned on double word
boundary in main array or shadow row.
If size = 0, C90FL_OK is returned.
Size, in bytes, of the Flash
region to be programmed. It should be multiple of 8 and its combination with dest
should fall in either main array or shadow row.
Source program buffer
address.
This address must reside on word boundary.
Address of void call back Any addressable void function address. To disable it
function pointer.
use NULL_CALLBACK macro.
DocID024604 Rev 2
15/42