Firmware User Manual (AE-step)
86
Revision 1.02
2019-04-24
TLE984x Firmware User Manual
)
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.13
user_nvm_config_get
Description
This user API function allows to gather the NVM configuration, this is the number of sectors for user code, user
data and user bsl.
Pointer must be within valid RAM range or an error code is returned.
Prototype
int32_t user_nvm_config_get (
uint8_t * cbsl_nvm_size
uint8_t * code_nvm_size
Data Type
Name
Description
Dir
uint32_t
page_num
Page number where to write to. Valid range: 0 to 7
-
uint32_t
offset
Byte offset inside the selected page address, where to
start writing. Maximum is 126 bytes.
-
const void *
data
Data pointer where to read the data to write. Pointer plus
valid count must be within valid RAM range or an error
code is returned
-
uint32_t
count
Amount of data bytes to write. If count is zero, there is no
operation and an error code is returned. Maximum is 126
bytes.
-
Data Type
Description
int32_t
ERR_LOG_SUCCESS in case of successful write operation, otherwise a negative
error code. Returned error code can be one of the following: ERR_LOG_SUCCESS,
ERR_LOG_CODE_100TP_PARAM_INVALID,
ERR_LOG_CODE_USERAPI_POINTER_RAM_RANGE_INVALID,
ERR_LOG_CODE_USERAPI_CONFIG_SECTOR_WRITE_PROTECTED,
ERR_LOG_CODE_100TP_WRITE_ADDRESS_INVALID,
ERR_LOG_CODE_100TP_WRITE_COUNT_EXCEEDED,
ERR_LOG_CODE_NVM_SEMAPHORE_RESERVED,
ERR_LOG_CODE_ACCESS_AB_MODE_ERROR, ERR_LOG_CODE_NVM_VER_ERROR