Firmware User Manual (AE-step)
92
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.19
user_nvm_ready_poll
Description
This user API function checks for the readiness of the NVM module. The API is called within the NVM
programming or erase branch callback operation. It checks if the NVM operation has finished and the callback
could return to the NVM routine.
Prototype
bool user_nvm_ready_poll (void)
Parameters
void
Return Values
6.8.20
user_nvm_page_erase
Description
This user API function erases a given NVM page (address). In case of an unsused (new) page in non-linear
sector, the function does nothing and returns success. In case of erasing a page in linear sector, the function
should always perform the erase.
This function rejects with an error in case the accessed NVM page is write protected.
Data Type
Description
int32_t
ERR_LOG_SUCCESS in case the password could be successfully applied, otherwise
a negative error code. Returned error code can be one of the following:
ERR_LOG_SUCCESS, ERR_LOG_CODE_USER_NVM_PROTECT_SEGMENT_INVALID,
ERR_LOG_CODE_NVM_SEMAPHORE_RESERVED,
ERR_LOG_CODE_CS_PAGE_CHECKSUM, ERR_LOG_CODE_CS_PAGE_ECC2READ,
ERR_LOG_CODE_USER_PROTECT_NVM_AND_PWD_ERASED,
ERR_LOG_CODE_NVM_PROTECT_REMOVE_PASSWORD_FAILED,
Data Type
Description
bool
True in case the requested NVM operation is already finished, otherwise false.