Firmware User Manual (AE-step)
87
Revision 1.02
2019-04-24
TLE984x Firmware User Manual
uint8_t * data_nvm_size
)
Parameters
Return Values
6.8.14
user_nvm_password_clear
Description
This user API function clears the NVM protection password for a given NVM code or data segment (not
supported for the BSL segment). The password is only removed in case the correct password is provided.
This function only removes the protection password from the device NVM configuration sector. It does not
remove the currently applied NVM HW access protection. The protection will not be applied until the next
system reboot, in case the password got removed successfully.
All NVM segment data (BSL-, Code- and Data- regions) and all passwords are erased in case a wrong password
is provided. Before erasing starts, all interrupts including NMI are temporarily disabled and any NVM and NVM
CS protection is disabled. Once erase is completed, protection and interrupts are restored to their original
state. The current protection status is not touched. The function rejects with an error in case the NVM code
segment is write protected.
Prototype
int32_t user_nvm_password_clear (
uint32_t password
NVM_PASSWORD_SEGMENT_t segment
)
Data Type
Name
Description
Dir
uint8_t *
cbsl_nvm_size
Pointer where to store the retrieved NVM cbsl size. Valid
RAM range is 0x18 device RAM size.
-
uint8_t *
code_nvm_size
Pointer where to store the retrieved NVM code size. Valid
RAM range is 0x18 device RAM size.
-
uint8_t *
data_nvm_size
Pointer where to store the retrieved NVM data size. Valid
RAM range is 0x18 device RAM size.
-
Data Type
Description
int32_t
ERR_LOG_SUCCESS in case of successful configuration retrieve operation,
otherwise a negative error code. Returned error code can be one of the following:
ERR_LOG_SUCCESS, ERR_LOG_CODE_NVM_CONFIG_NOT_READY,
ERR_LOG_CODE_USERAPI_POINTER_RAM_RANGE_INVALID