Firmware User Manual (AE-step)
80
Revision 1.02
2019-04-24
TLE984x Firmware User Manual
Return Values
Remarks
It is not allowed to be called by NVM callback routines or any interrupt or multi-threaded environment in a re-
entrant context.
6.8.5
user_ecc_check
Description
This user API function checks for single and double ECC checking over the entire NVM (all NVM linear sectors
and all mapped pages inside the mapped NVM sector). Any existing ECC errors are cleared before the read
starts. Upon exit, the function will clear the current ECC status in the NVM module.
Prototype
int32_t user_ecc_check (void)
Parameters
void
Return Values
Data Type
Description
int32_t
ERR_LOG_SUCCESS in case no single or double ECC event have occurred, A
negative error code for single, double or single and double ECC errors A negative
error code if the NVM semaphore is not free. Returned error code can be one of the
following: ERR_LOG_SUCCESS,
ERR_LOG_CODE_USERAPI_POINTER_RAM_RANGE_INVALID,
ERR_LOG_CODE_NVM_SEMAPHORE_RESERVED,
ERR_LOG_CODE_SINGLE_ECC_EVENT_OCCURRED,
ERR_LOG_CODE_DOUBLE_ECC_EVENT_OCCURRED,
ERR_LOG_CODE_SINGLE_AND_DOUBLE_ECC_EVENT_OCCURRED
Data Type
Description
int32_t
ERR_LOG_SUCCESS in case no single or double ECC event have occurred, otherwise
a negative error code for single, double or single and double ECC errors. Returned
error code can be one of the following: ERR_LOG_SUCCESS,
ERR_LOG_CODE_NVM_SEMAPHORE_RESERVED,
ERR_LOG_CODE_SINGLE_ECC_EVENT_OCCURRED,
ERR_LOG_CODE_DOUBLE_ECC_EVENT_OCCURRED,
ERR_LOG_CODE_SINGLE_AND_DOUBLE_ECC_EVENT_OCCURRED