Infineon MOTIX™ MCU TLE988x/9x Device Family SDK
Macros
error_codes.h File Reference

Go to the source code of this file.

Detailed Description

Error codes definition.

Version
V0.3.1
Date
25. Apr 2022

Include Graph

Include dependency graph for error_codes.h:

Include Graph

This graph shows which files directly or indirectly include this file:

Macros

#define ERR_LOG_SUCCESS   0
 
#define ERR_LOG_ERROR   (-1)
 
#define ERR_LOG_CODE_INVALID_USER_FID   (0xFE000000U)
 
#define ERR_LOG_CODE_UNPRIVILEGED   (0xFF000000U)
 
#define ERR_LOG_CODE_BSL_RECV_BYTES_MISMATCH   (-2)
 
#define ERR_LOG_CODE_NVM_ERASE_PARAMS_INVALID   (-3)
 
#define ERR_LOG_CODE_INVALID_CUSTOMER_CONFIG_UBSL_SIZE   (-4)
 
#define ERR_LOG_CODE_UBSL_CONFIG_ALREADY_SET_OR_READ_ERR   (-5)
 
#define ERR_LOG_CODE_NVM_CODE_PROGRAMMED   (-6)
 
#define ERR_LOG_CODE_BSL_NVM_CALC_CHECKSUM_MISMATCH   (-7)
 
#define ERR_LOG_CODE_MEM_ADDR_RANGE_INVALID   (-8)
 
#define ERR_LOG_CODE_BAUDRATE_SET_FAIL   (-9)
 
#define ERR_LOG_CODE_CMD_VALIDITY_FAIL   (-12)
 
#define ERR_LOG_CODE_BSL_CID_INVALID   (-13)
 
#define ERR_LOG_CODE_KEY_PROTECTED   (-14)
 
#define ERR_LOG_CODE_KEY_VERSION   (-15)
 
#define ERR_LOG_CODE_KEY_SIZE   (-16)
 
#define ERR_LOG_CODE_KEY_ERASE_FAIL   (-17)
 
#define ERR_LOG_CODE_KEY_SLOT_MISMATCH   (-18)
 
#define ERR_LOG_CODE_KEY_SLOT_CORRUPTED   (-19)
 
#define ERR_LOG_CODE_KEY_VERIFY_FAIL   (-20)
 
#define ERR_LOG_CODE_CMAC_VERIFY_FAIL   (-21)
 
#define ERR_LOG_CODE_AES_UNSUPPORTED_ERROR   (-22)
 
#define ERR_LOG_CODE_AES_RESEED_NEEDED_ERROR   (-23)
 
#define ERR_LOG_CODE_AES_BUFFER_SMALL_ERROR   (-24)
 
#define ERR_LOG_CODE_AES_ERROR   (-25)
 
#define ERR_LOG_CODE_AES_UNAVAILABLE_ERROR   (-26)
 
#define ERR_LOG_CODE_USER_POINTER_RAM_RANGE_INVALID   (-27)
 
#define ERR_LOG_CODE_SEGMENT_PROTECTED   (-29)
 
#define ERR_LOG_CODE_SEMAPHORE_RESERVED   (-30)
 
#define ERR_LOG_CODE_FTEST_BOOTROM_SIGNATURE_READ   (-31)
 
#define ERR_LOG_CODE_TEST_HTOL_PWR_LOW_TEST_FAIL   (-32)
 
#define ERR_LOG_CODE_TEST_HTOL_PWR_HIGH_TEST_FAIL   (-33)
 
#define ERR_LOG_CODE_TEST_HTOL_FBI_RAM_FAIL   (-34)
 
#define ERR_LOG_CODE_SA_UNRECOVERABLE   (-35)
 
#define ERR_LOG_CODE_MAPRAM_SECTOR_RANGE_INIT_FAIL   (-36)
 
#define ERR_LOG_CODE_MAPRAM_INIT_PAGE_FAIL   (-37)
 
#define ERR_LOG_CODE_MAPRAM_INIT_DM_PAGE_FAIL   (-38)
 
#define ERR_LOG_CODE_ACCESS_AB_MODE_ERROR   (-39)
 
#define ERR_LOG_CODE_NVM_ECC2_DATA_ERROR   (-40)
 
#define ERR_LOG_CODE_NVM_VER_ERROR   (-41)
 
#define ERR_LOG_CODE_MAPRAM_INIT_FAIL   (-42)
 
#define ERR_LOG_CODE_VERIFY_AND_MAPRAM_INIT_FAIL   (-43)
 
#define ERR_LOG_CODE_NVM_ECC2_MAPBLOCK_ERROR   (-44)
 
#define ERR_LOG_CODE_NVM_SPARE_PAGE_NOT_AVAILABLE   (-45)
 
#define ERR_LOG_CODE_NVM_ECC2_MAPRAM_ERROR   (-46)
 
#define ERR_LOG_CODE_NVM_PAGE_NOT_MAPPED   (-47)
 
#define ERR_LOG_CODE_NVM_APPLY_PROTECTION_FAIL   (-48)
 
#define ERR_LOG_CODE_NVM_NOT_AVAILABLE   (-49)
 
#define ERR_LOG_CODE_VIRGIN   (-50)
 
#define ERR_LOG_CODE_100TP_PAGE_INVALID   (-51)
 
#define ERR_LOG_CODE_100TP_WRITE_COUNT_EXCEEDED   (-52)
 
#define ERR_LOG_CODE_ADDRESS_RANGE_CROSSING_PAGE_BOUNDARY   (-53)
 
#define ERR_LOG_CODE_CS_PAGE_CHECKSUM   (-54)
 
#define ERR_LOG_CODE_MBIST_FAILED   (-55)
 
#define ERR_LOG_CODE_CHKSUM_SIZE_INVALID   (-56)
 
#define ERR_LOG_CODE_INVALID_BOOT_CONFIG   (-57)
 
#define ERR_LOG_CODE_START_PAGE_ECC2READ   (-58)
 
#define ERR_LOG_CODE_ANA_TRIM_ADDRESS   (-59)
 
#define ERR_LOG_CODE_ANA_TRIM_MAGIC   (-60)
 
#define ERR_LOG_CODE_ANA_TRIM_NOT_ALIGNED   (-61)
 
#define ERR_LOG_CODE_AM_TRIM_INTERNAL_1   (-62)
 
#define ERR_LOG_CODE_AM_TRIM_INTERNAL_2   (-63)
 
#define ERR_LOG_CODE_AM_TRIM_CUSTOMER   (-64)
 
#define ERR_LOG_CODE_AM_TRIM_DATA_NOT_VALID   (-65)
 
#define ERR_LOG_CODE_PARAM_INVALID   (-66)
 
#define ERR_LOG_CODE_ECC1READ_ERROR   (-67)
 
#define ERR_LOG_CODE_ECC2READ_ERROR   (-68)
 
#define ERR_LOG_CODE_USER_PROTECT_WRONG_PASSWORD   (-69)
 
#define ERR_LOG_CODE_MBIST_RAM_RANGE_INVALID   (-70)
 
#define ERR_LOG_CODE_SIZE_INVALID   (-72)
 

Macro Definition Documentation

◆ ERR_LOG_CODE_100TP_PAGE_INVALID

#define ERR_LOG_CODE_100TP_PAGE_INVALID   (-51)

Attempt to access NVM 100TP page address outside of the valid range

◆ ERR_LOG_CODE_100TP_WRITE_COUNT_EXCEEDED

#define ERR_LOG_CODE_100TP_WRITE_COUNT_EXCEEDED   (-52)

NVM 100TP page write count was exceeded

◆ ERR_LOG_CODE_ACCESS_AB_MODE_ERROR

#define ERR_LOG_CODE_ACCESS_AB_MODE_ERROR   (-39)

Error when setting the assembly buffer to mode 1 or 2

◆ ERR_LOG_CODE_ADDRESS_RANGE_CROSSING_PAGE_BOUNDARY

#define ERR_LOG_CODE_ADDRESS_RANGE_CROSSING_PAGE_BOUNDARY   (-53)

Attempt to access NVM address range which is crossing NVM page boundary

◆ ERR_LOG_CODE_AES_BUFFER_SMALL_ERROR

#define ERR_LOG_CODE_AES_BUFFER_SMALL_ERROR   (-24)

AES library buffer too small error

◆ ERR_LOG_CODE_AES_ERROR

#define ERR_LOG_CODE_AES_ERROR   (-25)

AES library error

◆ ERR_LOG_CODE_AES_RESEED_NEEDED_ERROR

#define ERR_LOG_CODE_AES_RESEED_NEEDED_ERROR   (-23)

AES library reseed required error

◆ ERR_LOG_CODE_AES_UNAVAILABLE_ERROR

#define ERR_LOG_CODE_AES_UNAVAILABLE_ERROR   (-26)

Crypto functions are not available

◆ ERR_LOG_CODE_AES_UNSUPPORTED_ERROR

#define ERR_LOG_CODE_AES_UNSUPPORTED_ERROR   (-22)

AES library unsupported error

◆ ERR_LOG_CODE_AM_TRIM_CUSTOMER

#define ERR_LOG_CODE_AM_TRIM_CUSTOMER   (-64)

Customer analog module trimming phase failed

◆ ERR_LOG_CODE_AM_TRIM_DATA_NOT_VALID

#define ERR_LOG_CODE_AM_TRIM_DATA_NOT_VALID   (-65)

Analog module trimming data validity check failed

◆ ERR_LOG_CODE_AM_TRIM_INTERNAL_1

#define ERR_LOG_CODE_AM_TRIM_INTERNAL_1   (-62)

First phase internal analog module trimming failed

◆ ERR_LOG_CODE_AM_TRIM_INTERNAL_2

#define ERR_LOG_CODE_AM_TRIM_INTERNAL_2   (-63)

Second phase internal analog module trimming failed

◆ ERR_LOG_CODE_ANA_TRIM_ADDRESS

#define ERR_LOG_CODE_ANA_TRIM_ADDRESS   (-59)

Analog trimming address check failed

◆ ERR_LOG_CODE_ANA_TRIM_MAGIC

#define ERR_LOG_CODE_ANA_TRIM_MAGIC   (-60)

Analog trimming data block contains wrong magic field

◆ ERR_LOG_CODE_ANA_TRIM_NOT_ALIGNED

#define ERR_LOG_CODE_ANA_TRIM_NOT_ALIGNED   (-61)

Analog trimming data block is not 32-bit aligned

◆ ERR_LOG_CODE_BAUDRATE_SET_FAIL

#define ERR_LOG_CODE_BAUDRATE_SET_FAIL   (-9)

Invalid baudrate parameter or current BSL interface does not support it

◆ ERR_LOG_CODE_BSL_CID_INVALID

#define ERR_LOG_CODE_BSL_CID_INVALID   (-13)

Received unknown BSL command ID

◆ ERR_LOG_CODE_BSL_NVM_CALC_CHECKSUM_MISMATCH

#define ERR_LOG_CODE_BSL_NVM_CALC_CHECKSUM_MISMATCH   (-7)

BSL: Calculated NVM checksum does not match

◆ ERR_LOG_CODE_BSL_RECV_BYTES_MISMATCH

#define ERR_LOG_CODE_BSL_RECV_BYTES_MISMATCH   (-2)

Mismatch in received number of bytes for the BSL command

◆ ERR_LOG_CODE_CHKSUM_SIZE_INVALID

#define ERR_LOG_CODE_CHKSUM_SIZE_INVALID   (-56)

Boot page checksum size is larger than UBSL region

◆ ERR_LOG_CODE_CMAC_VERIFY_FAIL

#define ERR_LOG_CODE_CMAC_VERIFY_FAIL   (-21)

CMAC verification operation resulted in a mismatch

◆ ERR_LOG_CODE_CMD_VALIDITY_FAIL

#define ERR_LOG_CODE_CMD_VALIDITY_FAIL   (-12)

BSL command validity failed

◆ ERR_LOG_CODE_CS_PAGE_CHECKSUM

#define ERR_LOG_CODE_CS_PAGE_CHECKSUM   (-54)

NVM config sector checksum calculation failed

◆ ERR_LOG_CODE_ECC1READ_ERROR

#define ERR_LOG_CODE_ECC1READ_ERROR   (-67)

Single ECC event has occurred

◆ ERR_LOG_CODE_ECC2READ_ERROR

#define ERR_LOG_CODE_ECC2READ_ERROR   (-68)

Double or more ECC event has occurred

◆ ERR_LOG_CODE_FTEST_BOOTROM_SIGNATURE_READ

#define ERR_LOG_CODE_FTEST_BOOTROM_SIGNATURE_READ   (-31)

Factory test BootROM signature read error

◆ ERR_LOG_CODE_INVALID_BOOT_CONFIG

#define ERR_LOG_CODE_INVALID_BOOT_CONFIG   (-57)

Invalid reset handler in boot page

◆ ERR_LOG_CODE_INVALID_CUSTOMER_CONFIG_UBSL_SIZE

#define ERR_LOG_CODE_INVALID_CUSTOMER_CONFIG_UBSL_SIZE   (-4)

Specified customer configured UBSL size is invalid

◆ ERR_LOG_CODE_INVALID_USER_FID

#define ERR_LOG_CODE_INVALID_USER_FID   (0xFE000000U)

Invalid user API function ID

◆ ERR_LOG_CODE_KEY_ERASE_FAIL

#define ERR_LOG_CODE_KEY_ERASE_FAIL   (-17)

{

◆ ERR_LOG_CODE_KEY_PROTECTED

#define ERR_LOG_CODE_KEY_PROTECTED   (-14)

Key write failed due to protection setting

◆ ERR_LOG_CODE_KEY_SIZE

#define ERR_LOG_CODE_KEY_SIZE   (-16)

Key write failed due to invalid key size

◆ ERR_LOG_CODE_KEY_SLOT_CORRUPTED

#define ERR_LOG_CODE_KEY_SLOT_CORRUPTED   (-19)

Key slot contains unrecoverable error

◆ ERR_LOG_CODE_KEY_SLOT_MISMATCH

#define ERR_LOG_CODE_KEY_SLOT_MISMATCH   (-18)

Key slot contains mismatch data between main and backup pages

◆ ERR_LOG_CODE_KEY_VERIFY_FAIL

#define ERR_LOG_CODE_KEY_VERIFY_FAIL   (-20)

Key slot contained unrecoverable error and was erased

◆ ERR_LOG_CODE_KEY_VERSION

#define ERR_LOG_CODE_KEY_VERSION   (-15)

Key write failed due to invalid key version

◆ ERR_LOG_CODE_MAPRAM_INIT_DM_PAGE_FAIL

#define ERR_LOG_CODE_MAPRAM_INIT_DM_PAGE_FAIL   (-38)

Mapped page has double mapping error when trying to init mapRAM

◆ ERR_LOG_CODE_MAPRAM_INIT_FAIL

#define ERR_LOG_CODE_MAPRAM_INIT_FAIL   (-42)

Mapped page has double mapping or ECC2 error when trying to init mapRAM

◆ ERR_LOG_CODE_MAPRAM_INIT_PAGE_FAIL

#define ERR_LOG_CODE_MAPRAM_INIT_PAGE_FAIL   (-37)

Mapped page ECC2 error when trying to init mapRAM

◆ ERR_LOG_CODE_MAPRAM_SECTOR_RANGE_INIT_FAIL

#define ERR_LOG_CODE_MAPRAM_SECTOR_RANGE_INIT_FAIL   (-36)

indicate to verification: Only set GPTRC with single mapram sector range init failure

◆ ERR_LOG_CODE_MBIST_FAILED

#define ERR_LOG_CODE_MBIST_FAILED   (-55)

MBIST test detected on error

◆ ERR_LOG_CODE_MBIST_RAM_RANGE_INVALID

#define ERR_LOG_CODE_MBIST_RAM_RANGE_INVALID   (-70)

user_ram_mbist() RAM range for MBIST is invalid

◆ ERR_LOG_CODE_MEM_ADDR_RANGE_INVALID

#define ERR_LOG_CODE_MEM_ADDR_RANGE_INVALID   (-8)

Memory address range is invalid

◆ ERR_LOG_CODE_NVM_APPLY_PROTECTION_FAIL

#define ERR_LOG_CODE_NVM_APPLY_PROTECTION_FAIL   (-48)

Applying of NVM protection from NVM CS failed during bootup

◆ ERR_LOG_CODE_NVM_CODE_PROGRAMMED

#define ERR_LOG_CODE_NVM_CODE_PROGRAMMED   (-6)

Customer configured UBSL size can't be changed when code is present in NVM

◆ ERR_LOG_CODE_NVM_ECC2_DATA_ERROR

#define ERR_LOG_CODE_NVM_ECC2_DATA_ERROR   (-40)

ECC2 data error generated while reading from a NVM page

◆ ERR_LOG_CODE_NVM_ECC2_MAPBLOCK_ERROR

#define ERR_LOG_CODE_NVM_ECC2_MAPBLOCK_ERROR   (-44)

ECC2 mapBlock error generated while reading from a NVM page

◆ ERR_LOG_CODE_NVM_ECC2_MAPRAM_ERROR

#define ERR_LOG_CODE_NVM_ECC2_MAPRAM_ERROR   (-46)

ECC2 mapRAM error generated while reading mapRAM

◆ ERR_LOG_CODE_NVM_ERASE_PARAMS_INVALID

#define ERR_LOG_CODE_NVM_ERASE_PARAMS_INVALID   (-3)

Invalid BSL parameters to NVM erase command

◆ ERR_LOG_CODE_NVM_NOT_AVAILABLE

#define ERR_LOG_CODE_NVM_NOT_AVAILABLE   (-49)

NVM HW is not available during startup

◆ ERR_LOG_CODE_NVM_PAGE_NOT_MAPPED

#define ERR_LOG_CODE_NVM_PAGE_NOT_MAPPED   (-47)

NVM page is not mapped

◆ ERR_LOG_CODE_NVM_SPARE_PAGE_NOT_AVAILABLE

#define ERR_LOG_CODE_NVM_SPARE_PAGE_NOT_AVAILABLE   (-45)

MAPRAM physical page number for a given logical sector/page is larger than the number of physical pages in a sector

◆ ERR_LOG_CODE_NVM_VER_ERROR

#define ERR_LOG_CODE_NVM_VER_ERROR   (-41)

2 or more bit errors detected in NVM page when verifying NVM data

◆ ERR_LOG_CODE_PARAM_INVALID

#define ERR_LOG_CODE_PARAM_INVALID   (-66)

Invalid parameter

◆ ERR_LOG_CODE_SA_UNRECOVERABLE

#define ERR_LOG_CODE_SA_UNRECOVERABLE   (-35)

SA encountered an error not possible to repair

◆ ERR_LOG_CODE_SEGMENT_PROTECTED

#define ERR_LOG_CODE_SEGMENT_PROTECTED   (-29)

Access is not allowed when target segment is protected

◆ ERR_LOG_CODE_SEMAPHORE_RESERVED

#define ERR_LOG_CODE_SEMAPHORE_RESERVED   (-30)

Nested calls are not allowed

◆ ERR_LOG_CODE_SIZE_INVALID

#define ERR_LOG_CODE_SIZE_INVALID   (-72)

Invalid secure container size

◆ ERR_LOG_CODE_START_PAGE_ECC2READ

#define ERR_LOG_CODE_START_PAGE_ECC2READ   (-58)

An ECC2 error occurred while reading boot page

◆ ERR_LOG_CODE_TEST_HTOL_FBI_RAM_FAIL

#define ERR_LOG_CODE_TEST_HTOL_FBI_RAM_FAIL   (-34)

Factory test HTOL functional burn-in XRAM verification failed

◆ ERR_LOG_CODE_TEST_HTOL_PWR_HIGH_TEST_FAIL

#define ERR_LOG_CODE_TEST_HTOL_PWR_HIGH_TEST_FAIL   (-33)

Factory test power module test, P0.1 was not high

◆ ERR_LOG_CODE_TEST_HTOL_PWR_LOW_TEST_FAIL

#define ERR_LOG_CODE_TEST_HTOL_PWR_LOW_TEST_FAIL   (-32)

Factory test power module test, P0.1 was not low

◆ ERR_LOG_CODE_UBSL_CONFIG_ALREADY_SET_OR_READ_ERR

#define ERR_LOG_CODE_UBSL_CONFIG_ALREADY_SET_OR_READ_ERR   (-5)

Customer configured UBSL size or privilege already programmed or read error

◆ ERR_LOG_CODE_UNPRIVILEGED

#define ERR_LOG_CODE_UNPRIVILEGED   (0xFF000000U)

Invalid user API function ID

◆ ERR_LOG_CODE_USER_POINTER_RAM_RANGE_INVALID

#define ERR_LOG_CODE_USER_POINTER_RAM_RANGE_INVALID   (-27)

Invalid pointer address

◆ ERR_LOG_CODE_USER_PROTECT_WRONG_PASSWORD

#define ERR_LOG_CODE_USER_PROTECT_WRONG_PASSWORD   (-69)

Invalid passphrase or passphrase not configured

◆ ERR_LOG_CODE_VERIFY_AND_MAPRAM_INIT_FAIL

#define ERR_LOG_CODE_VERIFY_AND_MAPRAM_INIT_FAIL   (-43)

NVM programming and mapRAM init update failed after mapped page programming

◆ ERR_LOG_CODE_VIRGIN

#define ERR_LOG_CODE_VIRGIN   (-50)

ECC2 error, don't trust the data

◆ ERR_LOG_ERROR

#define ERR_LOG_ERROR   (-1)

Standard Error

◆ ERR_LOG_SUCCESS

#define ERR_LOG_SUCCESS   0

No Error