English
Language : 

UM1627 Datasheet, PDF (30/38 Pages) STMicroelectronics – Standard software driver for C90LC Flash
API specification
UM1627
Return values
Type
UINT32
Table 50. Return values for FlashECCLogicCheck()
Description
Possible values
Successful completion or error value.
C90FL_OK
C90FL_ERROR_ECC_LOGIC
Troubleshooting
The trouble shooting given here comprises of hardware errors and input parameter error.
Table 51. Troubleshooting for FlashECCLogicCheck()
Returned error bits
Possible causes
Solution
C90FL_ERROR_ECC_LOGIC Hardware Failure.
Hardware error.
2.7.3
Comments
Depending on the errBits value, a single or double bit faults are simulated. When a Flash
read is done, if the simulated error has not occurred, then the API returns the error code
C90FL_ERROR_ECC_LOGIC.
Assumptions
It assumes that the Flash block is initialized using a ‘FlashInit()’ API.
FactoryMarginReadCheck()
Description
This function checks the Factory Margin reads of the Flash. The user specified margin level
is used for reads and the operation is done on the specified blocks. The MISR values
calculated by the hardware is compared to the values passed by the user, if they are not the
same, then an error code is returned.
Prototype
UINT32 FactoryMarginReadCheck (PSSD_CONFIG pSSDConfig,
UINT32 lowEnabledBlocks,
UINT32 midEnabledBlocks,
UINT32 highEnabledBlocks,
UINT8 marginLevel,
MISR misrValue,
void (*CallBack)(void));
30/38
DocID024497 Rev 2