Infineon MOTIX™ MCU TLE988x/9x Device Family SDK
error_codes.h
Go to the documentation of this file.
1 /* ===================================================================
2 ** Copyright (C) Infineon Technologies AG
3 ** All rights reserved.
4 ** ===================================================================
5 **
6 ** ===================================================================
7 ** This document contains proprietary information. Passing on and
8 ** copying of this document, and communication of its contents is not
9 ** permitted without prior written authorization.
10 ** ===================================================================
11 **
12 ** @brief This file contains the BootRom error codes that
13 ** returned by the sub-functions. Each error code
14 ** number is unique for the overall BootRom
15 **
16 ** THIS FILE IS AUTOMATICALLY GENERATED
17 **
18 ** DO NOT MODIFY IT MANUALLY.
19 **
20 * */
21 
32 /*******************************************************************************
33 ** Author(s) Identity **
34 ********************************************************************************
35 ** Initials Name **
36 ** ---------------------------------------------------------------------------**
37 ** JO Julia Ott **
38 ** BG Blandine Guillot **
39 ** DM Daniel Mysliwitz **
40 *******************************************************************************/
41 
42 /*******************************************************************************
43 ** Revision Control History **
44 ********************************************************************************
45 ** V0.1.0: 2020-10-06, BG: Initial version of revision history **
46 ** V0.1.1: 2020-11-26, JO: EP-624: Removed internal error codes **
47 ** V0.2.0: 2021-07-12, JO: EP-863: Added error codes for AB design step **
48 ** V0.2.1: 2021-11-12, JO: EP-937: Updated copyright and branding **
49 ** V0.3.0: 2021-11-30, BG: EP-875: Added error codes for AK design step **
50 ** Removed error codes for AA and AB design steps **
51 ** V0.3.1: 2022-04-25, JO: EP-1039: Corrected MISRA violations **
52 *******************************************************************************/
53 
54 
55 #ifndef _ERROR_CODES_H_
56 #define _ERROR_CODES_H_
57 
58 /*******************************************************************************
59 ** Includes **
60 *******************************************************************************/
61 #include "RTE_Components.h"
62 
63 
64 /*******************************************************************************
65 ** Global Macro Declarations **
66 *******************************************************************************/
67 
69 #define ERR_LOG_SUCCESS 0
70 
72 #define ERR_LOG_ERROR (-1)
73 
75 #define ERR_LOG_CODE_INVALID_USER_FID (0xFE000000U)
76 
78 #define ERR_LOG_CODE_UNPRIVILEGED (0xFF000000U)
79 
81 #define ERR_LOG_CODE_BSL_RECV_BYTES_MISMATCH (-2)
82 
84 #define ERR_LOG_CODE_NVM_ERASE_PARAMS_INVALID (-3)
85 
87 #define ERR_LOG_CODE_INVALID_CUSTOMER_CONFIG_UBSL_SIZE (-4)
88 
90 #define ERR_LOG_CODE_UBSL_CONFIG_ALREADY_SET_OR_READ_ERR (-5)
91 
93 #define ERR_LOG_CODE_NVM_CODE_PROGRAMMED (-6)
94 
96 #define ERR_LOG_CODE_BSL_NVM_CALC_CHECKSUM_MISMATCH (-7)
97 
99 #define ERR_LOG_CODE_MEM_ADDR_RANGE_INVALID (-8)
100 
102 #define ERR_LOG_CODE_BAUDRATE_SET_FAIL (-9)
103 
105 #define ERR_LOG_CODE_CMD_VALIDITY_FAIL (-12)
106 
108 #define ERR_LOG_CODE_BSL_CID_INVALID (-13)
109 
111 #define ERR_LOG_CODE_KEY_PROTECTED (-14)
112 
114 #define ERR_LOG_CODE_KEY_VERSION (-15)
115 
117 #define ERR_LOG_CODE_KEY_SIZE (-16)
118 
120 #define ERR_LOG_CODE_KEY_ERASE_FAIL (-17)
121 
123 #define ERR_LOG_CODE_KEY_SLOT_MISMATCH (-18)
124 
126 #define ERR_LOG_CODE_KEY_SLOT_CORRUPTED (-19)
127 
129 #define ERR_LOG_CODE_KEY_VERIFY_FAIL (-20)
130 
132 #define ERR_LOG_CODE_CMAC_VERIFY_FAIL (-21)
133 
135 #define ERR_LOG_CODE_AES_UNSUPPORTED_ERROR (-22)
136 
138 #define ERR_LOG_CODE_AES_RESEED_NEEDED_ERROR (-23)
139 
141 #define ERR_LOG_CODE_AES_BUFFER_SMALL_ERROR (-24)
142 
144 #define ERR_LOG_CODE_AES_ERROR (-25)
145 
147 #define ERR_LOG_CODE_AES_UNAVAILABLE_ERROR (-26)
148 
150 #define ERR_LOG_CODE_USER_POINTER_RAM_RANGE_INVALID (-27)
151 
153 #define ERR_LOG_CODE_SEGMENT_PROTECTED (-29)
154 
156 #define ERR_LOG_CODE_SEMAPHORE_RESERVED (-30)
157 
159 #define ERR_LOG_CODE_FTEST_BOOTROM_SIGNATURE_READ (-31)
160 
162 #define ERR_LOG_CODE_TEST_HTOL_PWR_LOW_TEST_FAIL (-32)
163 
165 #define ERR_LOG_CODE_TEST_HTOL_PWR_HIGH_TEST_FAIL (-33)
166 
168 #define ERR_LOG_CODE_TEST_HTOL_FBI_RAM_FAIL (-34)
169 
171 #define ERR_LOG_CODE_SA_UNRECOVERABLE (-35)
172 
174 #define ERR_LOG_CODE_MAPRAM_SECTOR_RANGE_INIT_FAIL (-36)
175 
177 #define ERR_LOG_CODE_MAPRAM_INIT_PAGE_FAIL (-37)
178 
180 #define ERR_LOG_CODE_MAPRAM_INIT_DM_PAGE_FAIL (-38)
181 
183 #define ERR_LOG_CODE_ACCESS_AB_MODE_ERROR (-39)
184 
186 #define ERR_LOG_CODE_NVM_ECC2_DATA_ERROR (-40)
187 
189 #define ERR_LOG_CODE_NVM_VER_ERROR (-41)
190 
192 #define ERR_LOG_CODE_MAPRAM_INIT_FAIL (-42)
193 
195 #define ERR_LOG_CODE_VERIFY_AND_MAPRAM_INIT_FAIL (-43)
196 
198 #define ERR_LOG_CODE_NVM_ECC2_MAPBLOCK_ERROR (-44)
199 
201 #define ERR_LOG_CODE_NVM_SPARE_PAGE_NOT_AVAILABLE (-45)
202 
204 #define ERR_LOG_CODE_NVM_ECC2_MAPRAM_ERROR (-46)
205 
207 #define ERR_LOG_CODE_NVM_PAGE_NOT_MAPPED (-47)
208 
210 #define ERR_LOG_CODE_NVM_APPLY_PROTECTION_FAIL (-48)
211 
213 #define ERR_LOG_CODE_NVM_NOT_AVAILABLE (-49)
214 
216 #define ERR_LOG_CODE_VIRGIN (-50)
217 
219 #define ERR_LOG_CODE_100TP_PAGE_INVALID (-51)
220 
222 #define ERR_LOG_CODE_100TP_WRITE_COUNT_EXCEEDED (-52)
223 
225 #define ERR_LOG_CODE_ADDRESS_RANGE_CROSSING_PAGE_BOUNDARY (-53)
226 
228 #define ERR_LOG_CODE_CS_PAGE_CHECKSUM (-54)
229 
231 #define ERR_LOG_CODE_MBIST_FAILED (-55)
232 
234 #define ERR_LOG_CODE_CHKSUM_SIZE_INVALID (-56)
235 
237 #define ERR_LOG_CODE_INVALID_BOOT_CONFIG (-57)
238 
240 #define ERR_LOG_CODE_START_PAGE_ECC2READ (-58)
241 
243 #define ERR_LOG_CODE_ANA_TRIM_ADDRESS (-59)
244 
246 #define ERR_LOG_CODE_ANA_TRIM_MAGIC (-60)
247 
249 #define ERR_LOG_CODE_ANA_TRIM_NOT_ALIGNED (-61)
250 
252 #define ERR_LOG_CODE_AM_TRIM_INTERNAL_1 (-62)
253 
255 #define ERR_LOG_CODE_AM_TRIM_INTERNAL_2 (-63)
256 
258 #define ERR_LOG_CODE_AM_TRIM_CUSTOMER (-64)
259 
261 #define ERR_LOG_CODE_AM_TRIM_DATA_NOT_VALID (-65)
262 
264 #define ERR_LOG_CODE_PARAM_INVALID (-66)
265 
267 #define ERR_LOG_CODE_ECC1READ_ERROR (-67)
268 
270 #define ERR_LOG_CODE_ECC2READ_ERROR (-68)
271 
273 #define ERR_LOG_CODE_USER_PROTECT_WRONG_PASSWORD (-69)
274 
276 #define ERR_LOG_CODE_MBIST_RAM_RANGE_INVALID (-70)
277 
279 #define ERR_LOG_CODE_SIZE_INVALID (-72)
280 
281 #endif /* _ERROR_CODES_H_ */
282