Firmware User Manual (AE-step)
89
Revision 1.02
2019-04-24
TLE984x Firmware User Manual
uint32_t password
NVM_PASSWORD_SEGMENT_t segment
)
Parameters
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.16
user_nvm_protect_get
Description
This user API function checks for the currently applied NVM hardware protection status.
Prototype
uint32_t user_nvm_protect_get (
NVM_PASSWORD_SEGMENT_t segment
)
Parameters
Data Type
Name
Description
Dir
uint32_t
password
Protection password to apply on the given segment
-
segment
Segment which should be password 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_USER_PROTECT_PWD_INVALID,
ERR_LOG_CODE_NVM_SEMAPHORE_RESERVED,
ERR_LOG_CODE_CS_PAGE_CHECKSUM, ERR_LOG_CODE_CS_PAGE_ECC2READ,
ERR_LOG_CODE_ACCESS_AB_MODE_ERROR, ERR_LOG_CODE_NVM_VER_ERROR
ERR_LOG_CODE_USER_PROTECT_PWD_EXISTS
Data Type
Name
Description
Dir
segment
Which NVM segment to retrieve the current password
protection status
-