English
Language : 

UM1627 Datasheet, PDF (9/38 Pages) STMicroelectronics – Standard software driver for C90LC Flash
UM1627
API specification
2.6
2.6.1
Normal mode functions
FlashInit()
Description
This function reads the Flash configuration information from the Flash control registers and
initialize parameters in SSD configuration structure. ‘FlashIni()’ must be called prior to any
other Flash operations.
Prototype
UINT32 FlashInit (PSSD_CONFIG pSSDConfig);
Arguments
Argument
pSSDConfig
Table 4. Arguments for FlashInit()
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.
Return values
Type
UINT32
Table 5. Return values for FlashInit()
Description
Possible values
Indicates either success or failure type. It is a bit mapped
return code so that more than one condition can be
returned with a single return code. Each bit in the returned
value, except for C90FL_OK, indicates a kind of current
status of C90LC module.
C90FL_OK
C90FL_INFO_EER
C90FL_INFO_RWE
Troubleshooting
Error codes
C90FL_INFO_EER
C90FL_INFO_RWE
Table 6. Troubleshooting for FlashInit()
Possible causes
Solution
An ECC Error occurred during a
previous read.
Clear FLASH_MCR-EER bit.
A Read While Write Error occurred
during a previous read
Clear the FLASH_MCR-RWE bit.
Comments
‘FlashIni()’ checks the C90FL_MCR_RWE and C90FL_MCR_EER bit, but does not clear
them when any of them is set. If RWE bit is set, Flash program/erase operations can still be
performed.
Assumptions
None.
DocID024497 Rev 2
9/38