1 //Do not edit this file because it is autogenerated by gen_esp_err_to_name.py
2
3 #include <string.h>
4 #include "esp_err.h"
5 #if __has_include("soc/soc.h")
6 #include "soc/soc.h"
7 #endif
8 #if __has_include("esp_ds.h")
9 #include "esp_ds.h"
10 #endif
11 #if __has_include("esp_efuse.h")
12 #include "esp_efuse.h"
13 #endif
14 #if __has_include("esp_http_client.h")
15 #include "esp_http_client.h"
16 #endif
17 #if __has_include("esp_http_server.h")
18 #include "esp_http_server.h"
19 #endif
20 #if __has_include("esp_https_ota.h")
21 #include "esp_https_ota.h"
22 #endif
23 #if __has_include("esp_image_format.h")
24 #include "esp_image_format.h"
25 #endif
26 #if __has_include("esp_mesh.h")
27 #include "esp_mesh.h"
28 #endif
29 #if __has_include("esp_netif_types.h")
30 #include "esp_netif_types.h"
31 #endif
32 #if __has_include("esp_now.h")
33 #include "esp_now.h"
34 #endif
35 #if __has_include("esp_ota_ops.h")
36 #include "esp_ota_ops.h"
37 #endif
38 #if __has_include("esp_ping.h")
39 #include "esp_ping.h"
40 #endif
41 #if __has_include("esp_serial_slave_link/essl.h")
42 #include "esp_serial_slave_link/essl.h"
43 #endif
44 #if __has_include("esp_spi_flash.h")
45 #include "esp_spi_flash.h"
46 #endif
47 #if __has_include("esp_supplicant/esp_dpp.h")
48 #include "esp_supplicant/esp_dpp.h"
49 #endif
50 #if __has_include("esp_supplicant/esp_wps.h")
51 #include "esp_supplicant/esp_wps.h"
52 #endif
53 #if __has_include("esp_tls.h")
54 #include "esp_tls.h"
55 #endif
56 #if __has_include("esp_wifi.h")
57 #include "esp_wifi.h"
58 #endif
59 #if __has_include("hal/esp_flash_err.h")
60 #include "hal/esp_flash_err.h"
61 #endif
62 #if __has_include("nvs.h")
63 #include "nvs.h"
64 #endif
65 #if __has_include("ulp_common.h")
66 #include "ulp_common.h"
67 #endif
68
69 #ifdef CONFIG_ESP_ERR_TO_NAME_LOOKUP
70 #define ERR_TBL_IT(err) {err, #err}
71
72 typedef struct {
73 esp_err_t code;
74 const char *msg;
75 } esp_err_msg_t;
76
77 static const esp_err_msg_t esp_err_msg_table[] = {
78 // components/esp_common/include/esp_err.h
79 # ifdef ESP_FAIL
80 ERR_TBL_IT(ESP_FAIL), /* -1 Generic esp_err_t code indicating failure */
81 # endif
82 # ifdef ESP_OK
83 ERR_TBL_IT(ESP_OK), /* 0 esp_err_t value indicating success (no error) */
84 # endif
85 # ifdef ESP_ERR_NO_MEM
86 ERR_TBL_IT(ESP_ERR_NO_MEM), /* 257 0x101 Out of memory */
87 # endif
88 # ifdef ESP_ERR_INVALID_ARG
89 ERR_TBL_IT(ESP_ERR_INVALID_ARG), /* 258 0x102 Invalid argument */
90 # endif
91 # ifdef ESP_ERR_INVALID_STATE
92 ERR_TBL_IT(ESP_ERR_INVALID_STATE), /* 259 0x103 Invalid state */
93 # endif
94 # ifdef ESP_ERR_INVALID_SIZE
95 ERR_TBL_IT(ESP_ERR_INVALID_SIZE), /* 260 0x104 Invalid size */
96 # endif
97 # ifdef ESP_ERR_NOT_FOUND
98 ERR_TBL_IT(ESP_ERR_NOT_FOUND), /* 261 0x105 Requested resource not found */
99 # endif
100 # ifdef ESP_ERR_NOT_SUPPORTED
101 ERR_TBL_IT(ESP_ERR_NOT_SUPPORTED), /* 262 0x106 Operation or feature not supported */
102 # endif
103 # ifdef ESP_ERR_TIMEOUT
104 ERR_TBL_IT(ESP_ERR_TIMEOUT), /* 263 0x107 Operation timed out */
105 # endif
106 # ifdef ESP_ERR_INVALID_RESPONSE
107 ERR_TBL_IT(ESP_ERR_INVALID_RESPONSE), /* 264 0x108 Received response was invalid */
108 # endif
109 # ifdef ESP_ERR_INVALID_CRC
110 ERR_TBL_IT(ESP_ERR_INVALID_CRC), /* 265 0x109 CRC or checksum was invalid */
111 # endif
112 # ifdef ESP_ERR_INVALID_VERSION
113 ERR_TBL_IT(ESP_ERR_INVALID_VERSION), /* 266 0x10a Version was invalid */
114 # endif
115 # ifdef ESP_ERR_INVALID_MAC
116 ERR_TBL_IT(ESP_ERR_INVALID_MAC), /* 267 0x10b MAC address was invalid */
117 # endif
118 // components/esp_serial_slave_link/include/esp_serial_slave_link/essl.h
119 # ifdef ESP_ERR_NOT_FINISHED
120 ERR_TBL_IT(ESP_ERR_NOT_FINISHED), /* 513 0x201 */
121 # endif
122 // components/nvs_flash/include/nvs.h
123 # ifdef ESP_ERR_NVS_BASE
124 ERR_TBL_IT(ESP_ERR_NVS_BASE), /* 4352 0x1100 Starting number of error codes */
125 # endif
126 # ifdef ESP_ERR_NVS_NOT_INITIALIZED
127 ERR_TBL_IT(ESP_ERR_NVS_NOT_INITIALIZED), /* 4353 0x1101 The storage driver is not initialized */
128 # endif
129 # ifdef ESP_ERR_NVS_NOT_FOUND
130 ERR_TBL_IT(ESP_ERR_NVS_NOT_FOUND), /* 4354 0x1102 Id namespace doesn’t exist yet and mode
131 is NVS_READONLY */
132 # endif
133 # ifdef ESP_ERR_NVS_TYPE_MISMATCH
134 ERR_TBL_IT(ESP_ERR_NVS_TYPE_MISMATCH), /* 4355 0x1103 The type of set or get operation doesn't
135 match the type of value stored in NVS */
136 # endif
137 # ifdef ESP_ERR_NVS_READ_ONLY
138 ERR_TBL_IT(ESP_ERR_NVS_READ_ONLY), /* 4356 0x1104 Storage handle was opened as read only */
139 # endif
140 # ifdef ESP_ERR_NVS_NOT_ENOUGH_SPACE
141 ERR_TBL_IT(ESP_ERR_NVS_NOT_ENOUGH_SPACE), /* 4357 0x1105 There is not enough space in the
142 underlying storage to save the value */
143 # endif
144 # ifdef ESP_ERR_NVS_INVALID_NAME
145 ERR_TBL_IT(ESP_ERR_NVS_INVALID_NAME), /* 4358 0x1106 Namespace name doesn’t satisfy constraints */
146 # endif
147 # ifdef ESP_ERR_NVS_INVALID_HANDLE
148 ERR_TBL_IT(ESP_ERR_NVS_INVALID_HANDLE), /* 4359 0x1107 Handle has been closed or is NULL */
149 # endif
150 # ifdef ESP_ERR_NVS_REMOVE_FAILED
151 ERR_TBL_IT(ESP_ERR_NVS_REMOVE_FAILED), /* 4360 0x1108 The value wasn’t updated because flash
152 write operation has failed. The value
153 was written however, and update will be
154 finished after re-initialization of nvs,
155 provided that flash operation doesn’t
156 fail again. */
157 # endif
158 # ifdef ESP_ERR_NVS_KEY_TOO_LONG
159 ERR_TBL_IT(ESP_ERR_NVS_KEY_TOO_LONG), /* 4361 0x1109 Key name is too long */
160 # endif
161 # ifdef ESP_ERR_NVS_PAGE_FULL
162 ERR_TBL_IT(ESP_ERR_NVS_PAGE_FULL), /* 4362 0x110a Internal error; never returned by nvs
163 API functions */
164 # endif
165 # ifdef ESP_ERR_NVS_INVALID_STATE
166 ERR_TBL_IT(ESP_ERR_NVS_INVALID_STATE), /* 4363 0x110b NVS is in an inconsistent state due to a
167 previous error. Call nvs_flash_init and
168 nvs_open again, then retry. */
169 # endif
170 # ifdef ESP_ERR_NVS_INVALID_LENGTH
171 ERR_TBL_IT(ESP_ERR_NVS_INVALID_LENGTH), /* 4364 0x110c String or blob length is not sufficient
172 to store data */
173 # endif
174 # ifdef ESP_ERR_NVS_NO_FREE_PAGES
175 ERR_TBL_IT(ESP_ERR_NVS_NO_FREE_PAGES), /* 4365 0x110d NVS partition doesn't contain any empty
176 pages. This may happen if NVS partition
177 was truncated. Erase the whole partition
178 and call nvs_flash_init again. */
179 # endif
180 # ifdef ESP_ERR_NVS_VALUE_TOO_LONG
181 ERR_TBL_IT(ESP_ERR_NVS_VALUE_TOO_LONG), /* 4366 0x110e String or blob length is longer than
182 supported by the implementation */
183 # endif
184 # ifdef ESP_ERR_NVS_PART_NOT_FOUND
185 ERR_TBL_IT(ESP_ERR_NVS_PART_NOT_FOUND), /* 4367 0x110f Partition with specified name is not
186 found in the partition table */
187 # endif
188 # ifdef ESP_ERR_NVS_NEW_VERSION_FOUND
189 ERR_TBL_IT(ESP_ERR_NVS_NEW_VERSION_FOUND), /* 4368 0x1110 NVS partition contains data in new
190 format and cannot be recognized by this
191 version of code */
192 # endif
193 # ifdef ESP_ERR_NVS_XTS_ENCR_FAILED
194 ERR_TBL_IT(ESP_ERR_NVS_XTS_ENCR_FAILED), /* 4369 0x1111 XTS encryption failed while writing NVS entry */
195 # endif
196 # ifdef ESP_ERR_NVS_XTS_DECR_FAILED
197 ERR_TBL_IT(ESP_ERR_NVS_XTS_DECR_FAILED), /* 4370 0x1112 XTS decryption failed while reading NVS entry */
198 # endif
199 # ifdef ESP_ERR_NVS_XTS_CFG_FAILED
200 ERR_TBL_IT(ESP_ERR_NVS_XTS_CFG_FAILED), /* 4371 0x1113 XTS configuration setting failed */
201 # endif
202 # ifdef ESP_ERR_NVS_XTS_CFG_NOT_FOUND
203 ERR_TBL_IT(ESP_ERR_NVS_XTS_CFG_NOT_FOUND), /* 4372 0x1114 XTS configuration not found */
204 # endif
205 # ifdef ESP_ERR_NVS_ENCR_NOT_SUPPORTED
206 ERR_TBL_IT(ESP_ERR_NVS_ENCR_NOT_SUPPORTED), /* 4373 0x1115 NVS encryption is not supported in this version */
207 # endif
208 # ifdef ESP_ERR_NVS_KEYS_NOT_INITIALIZED
209 ERR_TBL_IT(ESP_ERR_NVS_KEYS_NOT_INITIALIZED), /* 4374 0x1116 NVS key partition is uninitialized */
210 # endif
211 # ifdef ESP_ERR_NVS_CORRUPT_KEY_PART
212 ERR_TBL_IT(ESP_ERR_NVS_CORRUPT_KEY_PART), /* 4375 0x1117 NVS key partition is corrupt */
213 # endif
214 # ifdef ESP_ERR_NVS_CONTENT_DIFFERS
215 ERR_TBL_IT(ESP_ERR_NVS_CONTENT_DIFFERS), /* 4376 0x1118 Internal error; never returned by nvs
216 API functions. NVS key is different in
217 comparison */
218 # endif
219 # ifdef ESP_ERR_NVS_WRONG_ENCRYPTION
220 ERR_TBL_IT(ESP_ERR_NVS_WRONG_ENCRYPTION), /* 4377 0x1119 NVS partition is marked as encrypted
221 with generic flash encryption. This is
222 forbidden since the NVS encryption works
223 differently. */
224 # endif
225 // components/ulp/include/ulp_common.h
226 # ifdef ESP_ERR_ULP_BASE
227 ERR_TBL_IT(ESP_ERR_ULP_BASE), /* 4608 0x1200 Offset for ULP-related error codes */
228 # endif
229 # ifdef ESP_ERR_ULP_SIZE_TOO_BIG
230 ERR_TBL_IT(ESP_ERR_ULP_SIZE_TOO_BIG), /* 4609 0x1201 Program doesn't fit into RTC memory
231 reserved for the ULP */
232 # endif
233 # ifdef ESP_ERR_ULP_INVALID_LOAD_ADDR
234 ERR_TBL_IT(ESP_ERR_ULP_INVALID_LOAD_ADDR), /* 4610 0x1202 Load address is outside of RTC memory
235 reserved for the ULP */
236 # endif
237 # ifdef ESP_ERR_ULP_DUPLICATE_LABEL
238 ERR_TBL_IT(ESP_ERR_ULP_DUPLICATE_LABEL), /* 4611 0x1203 More than one label with the same number
239 was defined */
240 # endif
241 # ifdef ESP_ERR_ULP_UNDEFINED_LABEL
242 ERR_TBL_IT(ESP_ERR_ULP_UNDEFINED_LABEL), /* 4612 0x1204 Branch instructions references an undefined label */
243 # endif
244 # ifdef ESP_ERR_ULP_BRANCH_OUT_OF_RANGE
245 ERR_TBL_IT(ESP_ERR_ULP_BRANCH_OUT_OF_RANGE), /* 4613 0x1205 Branch target is out of range of B
246 instruction (try replacing with BX) */
247 # endif
248 // components/app_update/include/esp_ota_ops.h
249 # ifdef ESP_ERR_OTA_BASE
250 ERR_TBL_IT(ESP_ERR_OTA_BASE), /* 5376 0x1500 Base error code for ota_ops api */
251 # endif
252 # ifdef ESP_ERR_OTA_PARTITION_CONFLICT
253 ERR_TBL_IT(ESP_ERR_OTA_PARTITION_CONFLICT), /* 5377 0x1501 Error if request was to write or erase
254 the current running partition */
255 # endif
256 # ifdef ESP_ERR_OTA_SELECT_INFO_INVALID
257 ERR_TBL_IT(ESP_ERR_OTA_SELECT_INFO_INVALID), /* 5378 0x1502 Error if OTA data partition contains
258 invalid content */
259 # endif
260 # ifdef ESP_ERR_OTA_VALIDATE_FAILED
261 ERR_TBL_IT(ESP_ERR_OTA_VALIDATE_FAILED), /* 5379 0x1503 Error if OTA app image is invalid */
262 # endif
263 # ifdef ESP_ERR_OTA_SMALL_SEC_VER
264 ERR_TBL_IT(ESP_ERR_OTA_SMALL_SEC_VER), /* 5380 0x1504 Error if the firmware has a secure
265 version less than the running firmware. */
266 # endif
267 # ifdef ESP_ERR_OTA_ROLLBACK_FAILED
268 ERR_TBL_IT(ESP_ERR_OTA_ROLLBACK_FAILED), /* 5381 0x1505 Error if flash does not have valid
269 firmware in passive partition and hence
270 rollback is not possible */
271 # endif
272 # ifdef ESP_ERR_OTA_ROLLBACK_INVALID_STATE
273 ERR_TBL_IT(ESP_ERR_OTA_ROLLBACK_INVALID_STATE), /* 5382 0x1506 Error if current active firmware is
274 still marked in pending validation state
275 (ESP_OTA_IMG_PENDING_VERIFY),
276 essentially first boot of firmware image
277 post upgrade and hence firmware upgrade
278 is not possible */
279 # endif
280 // components/efuse/include/esp_efuse.h
281 # ifdef ESP_ERR_EFUSE
282 ERR_TBL_IT(ESP_ERR_EFUSE), /* 5632 0x1600 Base error code for efuse api. */
283 # endif
284 # ifdef ESP_OK_EFUSE_CNT
285 ERR_TBL_IT(ESP_OK_EFUSE_CNT), /* 5633 0x1601 OK the required number of bits is set. */
286 # endif
287 # ifdef ESP_ERR_EFUSE_CNT_IS_FULL
288 ERR_TBL_IT(ESP_ERR_EFUSE_CNT_IS_FULL), /* 5634 0x1602 Error field is full. */
289 # endif
290 # ifdef ESP_ERR_EFUSE_REPEATED_PROG
291 ERR_TBL_IT(ESP_ERR_EFUSE_REPEATED_PROG), /* 5635 0x1603 Error repeated programming of programmed
292 bits is strictly forbidden. */
293 # endif
294 # ifdef ESP_ERR_CODING
295 ERR_TBL_IT(ESP_ERR_CODING), /* 5636 0x1604 Error while a encoding operation. */
296 # endif
297 # ifdef ESP_ERR_NOT_ENOUGH_UNUSED_KEY_BLOCKS
298 ERR_TBL_IT(ESP_ERR_NOT_ENOUGH_UNUSED_KEY_BLOCKS), /* 5637 0x1605 Error not enough unused key blocks available */
299 # endif
300 // components/bootloader_support/include/esp_image_format.h
301 # ifdef ESP_ERR_IMAGE_BASE
302 ERR_TBL_IT(ESP_ERR_IMAGE_BASE), /* 8192 0x2000 */
303 # endif
304 # ifdef ESP_ERR_IMAGE_FLASH_FAIL
305 ERR_TBL_IT(ESP_ERR_IMAGE_FLASH_FAIL), /* 8193 0x2001 */
306 # endif
307 # ifdef ESP_ERR_IMAGE_INVALID
308 ERR_TBL_IT(ESP_ERR_IMAGE_INVALID), /* 8194 0x2002 */
309 # endif
310 // components/esp_common/include/esp_err.h
311 # ifdef ESP_ERR_WIFI_BASE
312 ERR_TBL_IT(ESP_ERR_WIFI_BASE), /* 12288 0x3000 Starting number of WiFi error codes */
313 # endif
314 // components/esp_wifi/include/esp_wifi.h
315 # ifdef ESP_ERR_WIFI_NOT_INIT
316 ERR_TBL_IT(ESP_ERR_WIFI_NOT_INIT), /* 12289 0x3001 WiFi driver was not installed by esp_wifi_init */
317 # endif
318 # ifdef ESP_ERR_WIFI_NOT_STARTED
319 ERR_TBL_IT(ESP_ERR_WIFI_NOT_STARTED), /* 12290 0x3002 WiFi driver was not started by esp_wifi_start */
320 # endif
321 # ifdef ESP_ERR_WIFI_NOT_STOPPED
322 ERR_TBL_IT(ESP_ERR_WIFI_NOT_STOPPED), /* 12291 0x3003 WiFi driver was not stopped by esp_wifi_stop */
323 # endif
324 # ifdef ESP_ERR_WIFI_IF
325 ERR_TBL_IT(ESP_ERR_WIFI_IF), /* 12292 0x3004 WiFi interface error */
326 # endif
327 # ifdef ESP_ERR_WIFI_MODE
328 ERR_TBL_IT(ESP_ERR_WIFI_MODE), /* 12293 0x3005 WiFi mode error */
329 # endif
330 # ifdef ESP_ERR_WIFI_STATE
331 ERR_TBL_IT(ESP_ERR_WIFI_STATE), /* 12294 0x3006 WiFi internal state error */
332 # endif
333 # ifdef ESP_ERR_WIFI_CONN
334 ERR_TBL_IT(ESP_ERR_WIFI_CONN), /* 12295 0x3007 WiFi internal control block of station
335 or soft-AP error */
336 # endif
337 # ifdef ESP_ERR_WIFI_NVS
338 ERR_TBL_IT(ESP_ERR_WIFI_NVS), /* 12296 0x3008 WiFi internal NVS module error */
339 # endif
340 # ifdef ESP_ERR_WIFI_MAC
341 ERR_TBL_IT(ESP_ERR_WIFI_MAC), /* 12297 0x3009 MAC address is invalid */
342 # endif
343 # ifdef ESP_ERR_WIFI_SSID
344 ERR_TBL_IT(ESP_ERR_WIFI_SSID), /* 12298 0x300a SSID is invalid */
345 # endif
346 # ifdef ESP_ERR_WIFI_PASSWORD
347 ERR_TBL_IT(ESP_ERR_WIFI_PASSWORD), /* 12299 0x300b Password is invalid */
348 # endif
349 # ifdef ESP_ERR_WIFI_TIMEOUT
350 ERR_TBL_IT(ESP_ERR_WIFI_TIMEOUT), /* 12300 0x300c Timeout error */
351 # endif
352 # ifdef ESP_ERR_WIFI_WAKE_FAIL
353 ERR_TBL_IT(ESP_ERR_WIFI_WAKE_FAIL), /* 12301 0x300d WiFi is in sleep state(RF closed) and wakeup fail */
354 # endif
355 # ifdef ESP_ERR_WIFI_WOULD_BLOCK
356 ERR_TBL_IT(ESP_ERR_WIFI_WOULD_BLOCK), /* 12302 0x300e The caller would block */
357 # endif
358 # ifdef ESP_ERR_WIFI_NOT_CONNECT
359 ERR_TBL_IT(ESP_ERR_WIFI_NOT_CONNECT), /* 12303 0x300f Station still in disconnect status */
360 # endif
361 # ifdef ESP_ERR_WIFI_POST
362 ERR_TBL_IT(ESP_ERR_WIFI_POST), /* 12306 0x3012 Failed to post the event to WiFi task */
363 # endif
364 # ifdef ESP_ERR_WIFI_INIT_STATE
365 ERR_TBL_IT(ESP_ERR_WIFI_INIT_STATE), /* 12307 0x3013 Invalid WiFi state when init/deinit is called */
366 # endif
367 # ifdef ESP_ERR_WIFI_STOP_STATE
368 ERR_TBL_IT(ESP_ERR_WIFI_STOP_STATE), /* 12308 0x3014 Returned when WiFi is stopping */
369 # endif
370 # ifdef ESP_ERR_WIFI_NOT_ASSOC
371 ERR_TBL_IT(ESP_ERR_WIFI_NOT_ASSOC), /* 12309 0x3015 The WiFi connection is not associated */
372 # endif
373 # ifdef ESP_ERR_WIFI_TX_DISALLOW
374 ERR_TBL_IT(ESP_ERR_WIFI_TX_DISALLOW), /* 12310 0x3016 The WiFi TX is disallowed */
375 # endif
376 // components/wpa_supplicant/include/esp_supplicant/esp_wps.h
377 # ifdef ESP_ERR_WIFI_REGISTRAR
378 ERR_TBL_IT(ESP_ERR_WIFI_REGISTRAR), /* 12339 0x3033 WPS registrar is not supported */
379 # endif
380 # ifdef ESP_ERR_WIFI_WPS_TYPE
381 ERR_TBL_IT(ESP_ERR_WIFI_WPS_TYPE), /* 12340 0x3034 WPS type error */
382 # endif
383 # ifdef ESP_ERR_WIFI_WPS_SM
384 ERR_TBL_IT(ESP_ERR_WIFI_WPS_SM), /* 12341 0x3035 WPS state machine is not initialized */
385 # endif
386 // components/esp_wifi/include/esp_now.h
387 # ifdef ESP_ERR_ESPNOW_BASE
388 ERR_TBL_IT(ESP_ERR_ESPNOW_BASE), /* 12388 0x3064 ESPNOW error number base. */
389 # endif
390 # ifdef ESP_ERR_ESPNOW_NOT_INIT
391 ERR_TBL_IT(ESP_ERR_ESPNOW_NOT_INIT), /* 12389 0x3065 ESPNOW is not initialized. */
392 # endif
393 # ifdef ESP_ERR_ESPNOW_ARG
394 ERR_TBL_IT(ESP_ERR_ESPNOW_ARG), /* 12390 0x3066 Invalid argument */
395 # endif
396 # ifdef ESP_ERR_ESPNOW_NO_MEM
397 ERR_TBL_IT(ESP_ERR_ESPNOW_NO_MEM), /* 12391 0x3067 Out of memory */
398 # endif
399 # ifdef ESP_ERR_ESPNOW_FULL
400 ERR_TBL_IT(ESP_ERR_ESPNOW_FULL), /* 12392 0x3068 ESPNOW peer list is full */
401 # endif
402 # ifdef ESP_ERR_ESPNOW_NOT_FOUND
403 ERR_TBL_IT(ESP_ERR_ESPNOW_NOT_FOUND), /* 12393 0x3069 ESPNOW peer is not found */
404 # endif
405 # ifdef ESP_ERR_ESPNOW_INTERNAL
406 ERR_TBL_IT(ESP_ERR_ESPNOW_INTERNAL), /* 12394 0x306a Internal error */
407 # endif
408 # ifdef ESP_ERR_ESPNOW_EXIST
409 ERR_TBL_IT(ESP_ERR_ESPNOW_EXIST), /* 12395 0x306b ESPNOW peer has existed */
410 # endif
411 # ifdef ESP_ERR_ESPNOW_IF
412 ERR_TBL_IT(ESP_ERR_ESPNOW_IF), /* 12396 0x306c Interface error */
413 # endif
414 // components/wpa_supplicant/include/esp_supplicant/esp_dpp.h
415 # ifdef ESP_ERR_DPP_FAILURE
416 ERR_TBL_IT(ESP_ERR_DPP_FAILURE), /* 12439 0x3097 Generic failure during DPP Operation */
417 # endif
418 # ifdef ESP_ERR_DPP_TX_FAILURE
419 ERR_TBL_IT(ESP_ERR_DPP_TX_FAILURE), /* 12440 0x3098 DPP Frame Tx failed OR not Acked */
420 # endif
421 # ifdef ESP_ERR_DPP_INVALID_ATTR
422 ERR_TBL_IT(ESP_ERR_DPP_INVALID_ATTR), /* 12441 0x3099 Encountered invalid DPP Attribute */
423 # endif
424 // components/esp_common/include/esp_err.h
425 # ifdef ESP_ERR_MESH_BASE
426 ERR_TBL_IT(ESP_ERR_MESH_BASE), /* 16384 0x4000 Starting number of MESH error codes */
427 # endif
428 // components/esp_wifi/include/esp_mesh.h
429 # ifdef ESP_ERR_MESH_WIFI_NOT_START
430 ERR_TBL_IT(ESP_ERR_MESH_WIFI_NOT_START), /* 16385 0x4001 */
431 # endif
432 # ifdef ESP_ERR_MESH_NOT_INIT
433 ERR_TBL_IT(ESP_ERR_MESH_NOT_INIT), /* 16386 0x4002 */
434 # endif
435 # ifdef ESP_ERR_MESH_NOT_CONFIG
436 ERR_TBL_IT(ESP_ERR_MESH_NOT_CONFIG), /* 16387 0x4003 */
437 # endif
438 # ifdef ESP_ERR_MESH_NOT_START
439 ERR_TBL_IT(ESP_ERR_MESH_NOT_START), /* 16388 0x4004 */
440 # endif
441 # ifdef ESP_ERR_MESH_NOT_SUPPORT
442 ERR_TBL_IT(ESP_ERR_MESH_NOT_SUPPORT), /* 16389 0x4005 */
443 # endif
444 # ifdef ESP_ERR_MESH_NOT_ALLOWED
445 ERR_TBL_IT(ESP_ERR_MESH_NOT_ALLOWED), /* 16390 0x4006 */
446 # endif
447 # ifdef ESP_ERR_MESH_NO_MEMORY
448 ERR_TBL_IT(ESP_ERR_MESH_NO_MEMORY), /* 16391 0x4007 */
449 # endif
450 # ifdef ESP_ERR_MESH_ARGUMENT
451 ERR_TBL_IT(ESP_ERR_MESH_ARGUMENT), /* 16392 0x4008 */
452 # endif
453 # ifdef ESP_ERR_MESH_EXCEED_MTU
454 ERR_TBL_IT(ESP_ERR_MESH_EXCEED_MTU), /* 16393 0x4009 */
455 # endif
456 # ifdef ESP_ERR_MESH_TIMEOUT
457 ERR_TBL_IT(ESP_ERR_MESH_TIMEOUT), /* 16394 0x400a */
458 # endif
459 # ifdef ESP_ERR_MESH_DISCONNECTED
460 ERR_TBL_IT(ESP_ERR_MESH_DISCONNECTED), /* 16395 0x400b */
461 # endif
462 # ifdef ESP_ERR_MESH_QUEUE_FAIL
463 ERR_TBL_IT(ESP_ERR_MESH_QUEUE_FAIL), /* 16396 0x400c */
464 # endif
465 # ifdef ESP_ERR_MESH_QUEUE_FULL
466 ERR_TBL_IT(ESP_ERR_MESH_QUEUE_FULL), /* 16397 0x400d */
467 # endif
468 # ifdef ESP_ERR_MESH_NO_PARENT_FOUND
469 ERR_TBL_IT(ESP_ERR_MESH_NO_PARENT_FOUND), /* 16398 0x400e */
470 # endif
471 # ifdef ESP_ERR_MESH_NO_ROUTE_FOUND
472 ERR_TBL_IT(ESP_ERR_MESH_NO_ROUTE_FOUND), /* 16399 0x400f */
473 # endif
474 # ifdef ESP_ERR_MESH_OPTION_NULL
475 ERR_TBL_IT(ESP_ERR_MESH_OPTION_NULL), /* 16400 0x4010 */
476 # endif
477 # ifdef ESP_ERR_MESH_OPTION_UNKNOWN
478 ERR_TBL_IT(ESP_ERR_MESH_OPTION_UNKNOWN), /* 16401 0x4011 */
479 # endif
480 # ifdef ESP_ERR_MESH_XON_NO_WINDOW
481 ERR_TBL_IT(ESP_ERR_MESH_XON_NO_WINDOW), /* 16402 0x4012 */
482 # endif
483 # ifdef ESP_ERR_MESH_INTERFACE
484 ERR_TBL_IT(ESP_ERR_MESH_INTERFACE), /* 16403 0x4013 */
485 # endif
486 # ifdef ESP_ERR_MESH_DISCARD_DUPLICATE
487 ERR_TBL_IT(ESP_ERR_MESH_DISCARD_DUPLICATE), /* 16404 0x4014 */
488 # endif
489 # ifdef ESP_ERR_MESH_DISCARD
490 ERR_TBL_IT(ESP_ERR_MESH_DISCARD), /* 16405 0x4015 */
491 # endif
492 # ifdef ESP_ERR_MESH_VOTING
493 ERR_TBL_IT(ESP_ERR_MESH_VOTING), /* 16406 0x4016 */
494 # endif
495 # ifdef ESP_ERR_MESH_XMIT
496 ERR_TBL_IT(ESP_ERR_MESH_XMIT), /* 16407 0x4017 */
497 # endif
498 # ifdef ESP_ERR_MESH_QUEUE_READ
499 ERR_TBL_IT(ESP_ERR_MESH_QUEUE_READ), /* 16408 0x4018 */
500 # endif
501 # ifdef ESP_ERR_MESH_PS
502 ERR_TBL_IT(ESP_ERR_MESH_PS), /* 16409 0x4019 */
503 # endif
504 # ifdef ESP_ERR_MESH_RECV_RELEASE
505 ERR_TBL_IT(ESP_ERR_MESH_RECV_RELEASE), /* 16410 0x401a */
506 # endif
507 // components/esp_netif/include/esp_netif_types.h
508 # ifdef ESP_ERR_ESP_NETIF_BASE
509 ERR_TBL_IT(ESP_ERR_ESP_NETIF_BASE), /* 20480 0x5000 */
510 # endif
511 # ifdef ESP_ERR_ESP_NETIF_INVALID_PARAMS
512 ERR_TBL_IT(ESP_ERR_ESP_NETIF_INVALID_PARAMS), /* 20481 0x5001 */
513 # endif
514 # ifdef ESP_ERR_ESP_NETIF_IF_NOT_READY
515 ERR_TBL_IT(ESP_ERR_ESP_NETIF_IF_NOT_READY), /* 20482 0x5002 */
516 # endif
517 # ifdef ESP_ERR_ESP_NETIF_DHCPC_START_FAILED
518 ERR_TBL_IT(ESP_ERR_ESP_NETIF_DHCPC_START_FAILED), /* 20483 0x5003 */
519 # endif
520 # ifdef ESP_ERR_ESP_NETIF_DHCP_ALREADY_STARTED
521 ERR_TBL_IT(ESP_ERR_ESP_NETIF_DHCP_ALREADY_STARTED), /* 20484 0x5004 */
522 # endif
523 # ifdef ESP_ERR_ESP_NETIF_DHCP_ALREADY_STOPPED
524 ERR_TBL_IT(ESP_ERR_ESP_NETIF_DHCP_ALREADY_STOPPED), /* 20485 0x5005 */
525 # endif
526 # ifdef ESP_ERR_ESP_NETIF_NO_MEM
527 ERR_TBL_IT(ESP_ERR_ESP_NETIF_NO_MEM), /* 20486 0x5006 */
528 # endif
529 # ifdef ESP_ERR_ESP_NETIF_DHCP_NOT_STOPPED
530 ERR_TBL_IT(ESP_ERR_ESP_NETIF_DHCP_NOT_STOPPED), /* 20487 0x5007 */
531 # endif
532 # ifdef ESP_ERR_ESP_NETIF_DRIVER_ATTACH_FAILED
533 ERR_TBL_IT(ESP_ERR_ESP_NETIF_DRIVER_ATTACH_FAILED), /* 20488 0x5008 */
534 # endif
535 # ifdef ESP_ERR_ESP_NETIF_INIT_FAILED
536 ERR_TBL_IT(ESP_ERR_ESP_NETIF_INIT_FAILED), /* 20489 0x5009 */
537 # endif
538 # ifdef ESP_ERR_ESP_NETIF_DNS_NOT_CONFIGURED
539 ERR_TBL_IT(ESP_ERR_ESP_NETIF_DNS_NOT_CONFIGURED), /* 20490 0x500a */
540 # endif
541 // components/esp_common/include/esp_err.h
542 # ifdef ESP_ERR_FLASH_BASE
543 ERR_TBL_IT(ESP_ERR_FLASH_BASE), /* 24576 0x6000 Starting number of flash error codes */
544 # endif
545 // components/spi_flash/include/esp_spi_flash.h
546 # ifdef ESP_ERR_FLASH_OP_FAIL
547 ERR_TBL_IT(ESP_ERR_FLASH_OP_FAIL), /* 24577 0x6001 */
548 # endif
549 # ifdef ESP_ERR_FLASH_OP_TIMEOUT
550 ERR_TBL_IT(ESP_ERR_FLASH_OP_TIMEOUT), /* 24578 0x6002 */
551 # endif
552 // components/hal/include/hal/esp_flash_err.h
553 # ifdef ESP_ERR_FLASH_NOT_INITIALISED
554 ERR_TBL_IT(ESP_ERR_FLASH_NOT_INITIALISED), /* 24579 0x6003 */
555 # endif
556 # ifdef ESP_ERR_FLASH_UNSUPPORTED_HOST
557 ERR_TBL_IT(ESP_ERR_FLASH_UNSUPPORTED_HOST), /* 24580 0x6004 */
558 # endif
559 # ifdef ESP_ERR_FLASH_UNSUPPORTED_CHIP
560 ERR_TBL_IT(ESP_ERR_FLASH_UNSUPPORTED_CHIP), /* 24581 0x6005 */
561 # endif
562 # ifdef ESP_ERR_FLASH_PROTECTED
563 ERR_TBL_IT(ESP_ERR_FLASH_PROTECTED), /* 24582 0x6006 */
564 # endif
565 // components/esp_http_client/include/esp_http_client.h
566 # ifdef ESP_ERR_HTTP_BASE
567 ERR_TBL_IT(ESP_ERR_HTTP_BASE), /* 28672 0x7000 Starting number of HTTP error codes */
568 # endif
569 # ifdef ESP_ERR_HTTP_MAX_REDIRECT
570 ERR_TBL_IT(ESP_ERR_HTTP_MAX_REDIRECT), /* 28673 0x7001 The error exceeds the number of HTTP redirects */
571 # endif
572 # ifdef ESP_ERR_HTTP_CONNECT
573 ERR_TBL_IT(ESP_ERR_HTTP_CONNECT), /* 28674 0x7002 Error open the HTTP connection */
574 # endif
575 # ifdef ESP_ERR_HTTP_WRITE_DATA
576 ERR_TBL_IT(ESP_ERR_HTTP_WRITE_DATA), /* 28675 0x7003 Error write HTTP data */
577 # endif
578 # ifdef ESP_ERR_HTTP_FETCH_HEADER
579 ERR_TBL_IT(ESP_ERR_HTTP_FETCH_HEADER), /* 28676 0x7004 Error read HTTP header from server */
580 # endif
581 # ifdef ESP_ERR_HTTP_INVALID_TRANSPORT
582 ERR_TBL_IT(ESP_ERR_HTTP_INVALID_TRANSPORT), /* 28677 0x7005 There are no transport support for the
583 input scheme */
584 # endif
585 # ifdef ESP_ERR_HTTP_CONNECTING
586 ERR_TBL_IT(ESP_ERR_HTTP_CONNECTING), /* 28678 0x7006 HTTP connection hasn't been established yet */
587 # endif
588 # ifdef ESP_ERR_HTTP_EAGAIN
589 ERR_TBL_IT(ESP_ERR_HTTP_EAGAIN), /* 28679 0x7007 Mapping of errno EAGAIN to esp_err_t */
590 # endif
591 // components/esp-tls/esp_tls.h
592 # ifdef ESP_ERR_ESP_TLS_BASE
593 ERR_TBL_IT(ESP_ERR_ESP_TLS_BASE), /* 32768 0x8000 Starting number of ESP-TLS error codes */
594 # endif
595 # ifdef ESP_ERR_ESP_TLS_CANNOT_RESOLVE_HOSTNAME
596 ERR_TBL_IT(ESP_ERR_ESP_TLS_CANNOT_RESOLVE_HOSTNAME), /* 32769 0x8001 Error if hostname couldn't be resolved
597 upon tls connection */
598 # endif
599 # ifdef ESP_ERR_ESP_TLS_CANNOT_CREATE_SOCKET
600 ERR_TBL_IT(ESP_ERR_ESP_TLS_CANNOT_CREATE_SOCKET), /* 32770 0x8002 Failed to create socket */
601 # endif
602 # ifdef ESP_ERR_ESP_TLS_UNSUPPORTED_PROTOCOL_FAMILY
603 ERR_TBL_IT(ESP_ERR_ESP_TLS_UNSUPPORTED_PROTOCOL_FAMILY), /* 32771 0x8003 Unsupported protocol family */
604 # endif
605 # ifdef ESP_ERR_ESP_TLS_FAILED_CONNECT_TO_HOST
606 ERR_TBL_IT(ESP_ERR_ESP_TLS_FAILED_CONNECT_TO_HOST), /* 32772 0x8004 Failed to connect to host */
607 # endif
608 # ifdef ESP_ERR_ESP_TLS_SOCKET_SETOPT_FAILED
609 ERR_TBL_IT(ESP_ERR_ESP_TLS_SOCKET_SETOPT_FAILED), /* 32773 0x8005 failed to set socket option */
610 # endif
611 # ifdef ESP_ERR_MBEDTLS_CERT_PARTLY_OK
612 ERR_TBL_IT(ESP_ERR_MBEDTLS_CERT_PARTLY_OK), /* 32774 0x8006 mbedtls parse certificates was partly successful */
613 # endif
614 # ifdef ESP_ERR_MBEDTLS_CTR_DRBG_SEED_FAILED
615 ERR_TBL_IT(ESP_ERR_MBEDTLS_CTR_DRBG_SEED_FAILED), /* 32775 0x8007 mbedtls api returned error */
616 # endif
617 # ifdef ESP_ERR_MBEDTLS_SSL_SET_HOSTNAME_FAILED
618 ERR_TBL_IT(ESP_ERR_MBEDTLS_SSL_SET_HOSTNAME_FAILED), /* 32776 0x8008 mbedtls api returned error */
619 # endif
620 # ifdef ESP_ERR_MBEDTLS_SSL_CONFIG_DEFAULTS_FAILED
621 ERR_TBL_IT(ESP_ERR_MBEDTLS_SSL_CONFIG_DEFAULTS_FAILED), /* 32777 0x8009 mbedtls api returned error */
622 # endif
623 # ifdef ESP_ERR_MBEDTLS_SSL_CONF_ALPN_PROTOCOLS_FAILED
624 ERR_TBL_IT(ESP_ERR_MBEDTLS_SSL_CONF_ALPN_PROTOCOLS_FAILED), /* 32778 0x800a mbedtls api returned error */
625 # endif
626 # ifdef ESP_ERR_MBEDTLS_X509_CRT_PARSE_FAILED
627 ERR_TBL_IT(ESP_ERR_MBEDTLS_X509_CRT_PARSE_FAILED), /* 32779 0x800b mbedtls api returned error */
628 # endif
629 # ifdef ESP_ERR_MBEDTLS_SSL_CONF_OWN_CERT_FAILED
630 ERR_TBL_IT(ESP_ERR_MBEDTLS_SSL_CONF_OWN_CERT_FAILED), /* 32780 0x800c mbedtls api returned error */
631 # endif
632 # ifdef ESP_ERR_MBEDTLS_SSL_SETUP_FAILED
633 ERR_TBL_IT(ESP_ERR_MBEDTLS_SSL_SETUP_FAILED), /* 32781 0x800d mbedtls api returned error */
634 # endif
635 # ifdef ESP_ERR_MBEDTLS_SSL_WRITE_FAILED
636 ERR_TBL_IT(ESP_ERR_MBEDTLS_SSL_WRITE_FAILED), /* 32782 0x800e mbedtls api returned error */
637 # endif
638 # ifdef ESP_ERR_MBEDTLS_PK_PARSE_KEY_FAILED
639 ERR_TBL_IT(ESP_ERR_MBEDTLS_PK_PARSE_KEY_FAILED), /* 32783 0x800f mbedtls api returned failed */
640 # endif
641 # ifdef ESP_ERR_MBEDTLS_SSL_HANDSHAKE_FAILED
642 ERR_TBL_IT(ESP_ERR_MBEDTLS_SSL_HANDSHAKE_FAILED), /* 32784 0x8010 mbedtls api returned failed */
643 # endif
644 # ifdef ESP_ERR_MBEDTLS_SSL_CONF_PSK_FAILED
645 ERR_TBL_IT(ESP_ERR_MBEDTLS_SSL_CONF_PSK_FAILED), /* 32785 0x8011 mbedtls api returned failed */
646 # endif
647 # ifdef ESP_ERR_ESP_TLS_CONNECTION_TIMEOUT
648 ERR_TBL_IT(ESP_ERR_ESP_TLS_CONNECTION_TIMEOUT), /* 32786 0x8012 new connection in esp_tls_low_level_conn
649 connection timeouted */
650 # endif
651 # ifdef ESP_ERR_WOLFSSL_SSL_SET_HOSTNAME_FAILED
652 ERR_TBL_IT(ESP_ERR_WOLFSSL_SSL_SET_HOSTNAME_FAILED), /* 32787 0x8013 wolfSSL api returned error */
653 # endif
654 # ifdef ESP_ERR_WOLFSSL_SSL_CONF_ALPN_PROTOCOLS_FAILED
655 ERR_TBL_IT(ESP_ERR_WOLFSSL_SSL_CONF_ALPN_PROTOCOLS_FAILED), /* 32788 0x8014 wolfSSL api returned error */
656 # endif
657 # ifdef ESP_ERR_WOLFSSL_CERT_VERIFY_SETUP_FAILED
658 ERR_TBL_IT(ESP_ERR_WOLFSSL_CERT_VERIFY_SETUP_FAILED), /* 32789 0x8015 wolfSSL api returned error */
659 # endif
660 # ifdef ESP_ERR_WOLFSSL_KEY_VERIFY_SETUP_FAILED
661 ERR_TBL_IT(ESP_ERR_WOLFSSL_KEY_VERIFY_SETUP_FAILED), /* 32790 0x8016 wolfSSL api returned error */
662 # endif
663 # ifdef ESP_ERR_WOLFSSL_SSL_HANDSHAKE_FAILED
664 ERR_TBL_IT(ESP_ERR_WOLFSSL_SSL_HANDSHAKE_FAILED), /* 32791 0x8017 wolfSSL api returned failed */
665 # endif
666 # ifdef ESP_ERR_WOLFSSL_CTX_SETUP_FAILED
667 ERR_TBL_IT(ESP_ERR_WOLFSSL_CTX_SETUP_FAILED), /* 32792 0x8018 wolfSSL api returned failed */
668 # endif
669 # ifdef ESP_ERR_WOLFSSL_SSL_SETUP_FAILED
670 ERR_TBL_IT(ESP_ERR_WOLFSSL_SSL_SETUP_FAILED), /* 32793 0x8019 wolfSSL api returned failed */
671 # endif
672 # ifdef ESP_ERR_WOLFSSL_SSL_WRITE_FAILED
673 ERR_TBL_IT(ESP_ERR_WOLFSSL_SSL_WRITE_FAILED), /* 32794 0x801a wolfSSL api returned failed */
674 # endif
675 # ifdef ESP_ERR_ESP_TLS_SE_FAILED
676 ERR_TBL_IT(ESP_ERR_ESP_TLS_SE_FAILED), /* 32795 0x801b */
677 # endif
678 // components/esp_https_ota/include/esp_https_ota.h
679 # ifdef ESP_ERR_HTTPS_OTA_BASE
680 ERR_TBL_IT(ESP_ERR_HTTPS_OTA_BASE), /* 36864 0x9000 */
681 # endif
682 # ifdef ESP_ERR_HTTPS_OTA_IN_PROGRESS
683 ERR_TBL_IT(ESP_ERR_HTTPS_OTA_IN_PROGRESS), /* 36865 0x9001 */
684 # endif
685 // components/lwip/include/apps/esp_ping.h
686 # ifdef ESP_ERR_PING_BASE
687 ERR_TBL_IT(ESP_ERR_PING_BASE), /* 40960 0xa000 */
688 # endif
689 # ifdef ESP_ERR_PING_INVALID_PARAMS
690 ERR_TBL_IT(ESP_ERR_PING_INVALID_PARAMS), /* 40961 0xa001 */
691 # endif
692 # ifdef ESP_ERR_PING_NO_MEM
693 ERR_TBL_IT(ESP_ERR_PING_NO_MEM), /* 40962 0xa002 */
694 # endif
695 // components/esp_http_server/include/esp_http_server.h
696 # ifdef ESP_ERR_HTTPD_BASE
697 ERR_TBL_IT(ESP_ERR_HTTPD_BASE), /* 45056 0xb000 Starting number of HTTPD error codes */
698 # endif
699 # ifdef ESP_ERR_HTTPD_HANDLERS_FULL
700 ERR_TBL_IT(ESP_ERR_HTTPD_HANDLERS_FULL), /* 45057 0xb001 All slots for registering URI handlers
701 have been consumed */
702 # endif
703 # ifdef ESP_ERR_HTTPD_HANDLER_EXISTS
704 ERR_TBL_IT(ESP_ERR_HTTPD_HANDLER_EXISTS), /* 45058 0xb002 URI handler with same method and target
705 URI already registered */
706 # endif
707 # ifdef ESP_ERR_HTTPD_INVALID_REQ
708 ERR_TBL_IT(ESP_ERR_HTTPD_INVALID_REQ), /* 45059 0xb003 Invalid request pointer */
709 # endif
710 # ifdef ESP_ERR_HTTPD_RESULT_TRUNC
711 ERR_TBL_IT(ESP_ERR_HTTPD_RESULT_TRUNC), /* 45060 0xb004 Result string truncated */
712 # endif
713 # ifdef ESP_ERR_HTTPD_RESP_HDR
714 ERR_TBL_IT(ESP_ERR_HTTPD_RESP_HDR), /* 45061 0xb005 Response header field larger than supported */
715 # endif
716 # ifdef ESP_ERR_HTTPD_RESP_SEND
717 ERR_TBL_IT(ESP_ERR_HTTPD_RESP_SEND), /* 45062 0xb006 Error occured while sending response packet */
718 # endif
719 # ifdef ESP_ERR_HTTPD_ALLOC_MEM
720 ERR_TBL_IT(ESP_ERR_HTTPD_ALLOC_MEM), /* 45063 0xb007 Failed to dynamically allocate memory
721 for resource */
722 # endif
723 # ifdef ESP_ERR_HTTPD_TASK
724 ERR_TBL_IT(ESP_ERR_HTTPD_TASK), /* 45064 0xb008 Failed to launch server task/thread */
725 # endif
726 // components/esp_common/include/esp_err.h
727 # ifdef ESP_ERR_HW_CRYPTO_BASE
728 ERR_TBL_IT(ESP_ERR_HW_CRYPTO_BASE), /* 49152 0xc000 Starting number of HW cryptography
729 module error codes */
730 # endif
731 // components/esp32s2/include/esp_ds.h
732 # ifdef ESP_ERR_HW_CRYPTO_DS_HMAC_FAIL
733 ERR_TBL_IT(ESP_ERR_HW_CRYPTO_DS_HMAC_FAIL), /* 49153 0xc001 HMAC peripheral problem */
734 # endif
735 # ifdef ESP_ERR_HW_CRYPTO_DS_INVALID_KEY
736 ERR_TBL_IT(ESP_ERR_HW_CRYPTO_DS_INVALID_KEY), /* 49154 0xc002 */
737 # endif
738 # ifdef ESP_ERR_HW_CRYPTO_DS_INVALID_DIGEST
739 ERR_TBL_IT(ESP_ERR_HW_CRYPTO_DS_INVALID_DIGEST), /* 49156 0xc004 */
740 # endif
741 # ifdef ESP_ERR_HW_CRYPTO_DS_INVALID_PADDING
742 ERR_TBL_IT(ESP_ERR_HW_CRYPTO_DS_INVALID_PADDING), /* 49157 0xc005 */
743 # endif
744 };
745 #endif //CONFIG_ESP_ERR_TO_NAME_LOOKUP
746
747 static const char esp_unknown_msg[] =
748 #ifdef CONFIG_ESP_ERR_TO_NAME_LOOKUP
749 "ERROR";
750 #else
751 "UNKNOWN ERROR";
752 #endif //CONFIG_ESP_ERR_TO_NAME_LOOKUP
753
esp_err_to_name(esp_err_t code)754 const char *esp_err_to_name(esp_err_t code)
755 {
756 #ifdef CONFIG_ESP_ERR_TO_NAME_LOOKUP
757 size_t i;
758
759 for (i = 0; i < sizeof(esp_err_msg_table)/sizeof(esp_err_msg_table[0]); ++i) {
760 if (esp_err_msg_table[i].code == code) {
761 return esp_err_msg_table[i].msg;
762 }
763 }
764 #endif //CONFIG_ESP_ERR_TO_NAME_LOOKUP
765
766 return esp_unknown_msg;
767 }
768
esp_err_to_name_r(esp_err_t code,char * buf,size_t buflen)769 const char *esp_err_to_name_r(esp_err_t code, char *buf, size_t buflen)
770 {
771 #ifdef CONFIG_ESP_ERR_TO_NAME_LOOKUP
772 size_t i;
773
774 for (i = 0; i < sizeof(esp_err_msg_table)/sizeof(esp_err_msg_table[0]); ++i) {
775 if (esp_err_msg_table[i].code == code) {
776 strlcpy(buf, esp_err_msg_table[i].msg, buflen);
777 return buf;
778 }
779 }
780 #endif //CONFIG_ESP_ERR_TO_NAME_LOOKUP
781
782 if (strerror_r(code, buf, buflen) == 0) {
783 return buf;
784 }
785
786 snprintf(buf, buflen, "%s 0x%x(%d)", esp_unknown_msg, code, code);
787
788 return buf;
789 }
790