Firmware User Manual (AE-step)
79
Revision 1.02
2019-04-24
TLE984x Firmware User Manual
Return Values
Remarks
It is not allowed to be called by NVM callback routines.
6.8.4
user_ecc_events_get
Description
This user API function checks if any single or double ECC events have occurred during runtime. It reports any
single or double ECC event coming from NVM. The corresponding last double ECC failure address is returned
via modified pointer. Upon exit, the function will clear the current ECC status in the NVM module.
Prototype
int32_t user_ecc_events_get (
uint32_t * pNVM_Addr
)
Parameters
Data Type
Description
int32_t
ERR_LOG_SUCCESS in case of success, otherwise a negative error code. Returned
error code can be one of the following: ERR_LOG_SUCCESS,
ERR_LOG_CODE_USERAPI_CONFIG_SECTOR_WRITE_PROTECTED,
ERR_LOG_CODE_USERAPI_CONFIG_SET_PARAMS_INVALID,
ERR_LOG_CODE_NVM_SEMAPHORE_RESERVED,
ERR_LOG_CODE_ACCESS_AB_MODE_ERROR
Data Type
Name
Description
Dir
uint32_t *
pNVM_Addr
Pointer to NVM Address variable where the double ECC
error is stored. This pointer stays untouched in case no
NVM double ECC errors was detected. The double ECC
error address points to an 8-byte NVM block where the
error occurred. Pointer must be within valid RAM range
(0x18 device RAM size) or an error code is
returned.
-