错误代码参考

[English]

本节列出了 ESP-IDF 中定义的各种错误代码常量。

有关 ESP-IDF 中出错处理的通用信息,请参见 错误处理。

ESP_FAIL (-1): Generic esp_err_t code indicating failure

ESP_OK (0): esp_err_t value indicating success (no error)

ESP_ERR_NO_MEM (0x101, 257): Out of memory

ESP_ERR_INVALID_ARG (0x102, 258): Invalid argument

ESP_ERR_INVALID_STATE (0x103, 259): Invalid state

ESP_ERR_INVALID_SIZE (0x104, 260): Invalid size

ESP_ERR_NOT_FOUND (0x105, 261): Requested resource not found

ESP_ERR_NOT_SUPPORTED (0x106, 262): Operation or feature not supported

ESP_ERR_TIMEOUT (0x107, 263): Operation timed out

ESP_ERR_INVALID_RESPONSE (0x108, 264): Received response was invalid

ESP_ERR_INVALID_CRC (0x109, 265): CRC or checksum was invalid

ESP_ERR_INVALID_VERSION (0x10a, 266): Version was invalid

ESP_ERR_INVALID_MAC (0x10b, 267): MAC address was invalid

ESP_ERR_NOT_FINISHED (0x10c, 268): Operation has not fully completed

ESP_ERR_NOT_ALLOWED (0x10d, 269): Operation is not allowed

ESP_ERR_NVS_BASE (0x1100, 4352): Starting number of error codes

ESP_ERR_NVS_NOT_INITIALIZED (0x1101, 4353): The storage driver is not initialized

ESP_ERR_NVS_NOT_FOUND (0x1102, 4354): A requested entry couldn't be found or namespace doesn’t exist yet and mode is NVS_READONLY

ESP_ERR_NVS_TYPE_MISMATCH (0x1103, 4355): The type of set or get operation doesn't match the type of value stored in NVS

ESP_ERR_NVS_READ_ONLY (0x1104, 4356): Storage handle was opened as read only

ESP_ERR_NVS_NOT_ENOUGH_SPACE (0x1105, 4357): There is not enough space in the underlying storage to save the value

ESP_ERR_NVS_INVALID_NAME (0x1106, 4358): Namespace name doesn’t satisfy constraints

ESP_ERR_NVS_INVALID_HANDLE (0x1107, 4359): Handle has been closed or is NULL

ESP_ERR_NVS_REMOVE_FAILED (0x1108, 4360): The value wasn’t updated because flash write operation has failed. The value was written however, and update will be finished after re-initialization of nvs, provided that flash operation doesn’t fail again.

ESP_ERR_NVS_KEY_TOO_LONG (0x1109, 4361): Key name is too long

ESP_ERR_NVS_PAGE_FULL (0x110a, 4362): Internal error; never returned by nvs API functions

ESP_ERR_NVS_INVALID_STATE (0x110b, 4363): NVS is in an inconsistent state due to a previous error. Call nvs_flash_init and nvs_open again, then retry.

ESP_ERR_NVS_INVALID_LENGTH (0x110c, 4364): String or blob length is not sufficient to store data

ESP_ERR_NVS_NO_FREE_PAGES (0x110d, 4365): NVS partition doesn't contain any empty pages. This may happen if NVS partition was truncated. Erase the whole partition and call nvs_flash_init again.

ESP_ERR_NVS_VALUE_TOO_LONG (0x110e, 4366): Value doesn't fit into the entry or string or blob length is longer than supported by the implementation

ESP_ERR_NVS_PART_NOT_FOUND (0x110f, 4367): Partition with specified name is not found in the partition table

ESP_ERR_NVS_NEW_VERSION_FOUND (0x1110, 4368): NVS partition contains data in new format and cannot be recognized by this version of code

ESP_ERR_NVS_XTS_ENCR_FAILED (0x1111, 4369): XTS encryption failed while writing NVS entry

ESP_ERR_NVS_XTS_DECR_FAILED (0x1112, 4370): XTS decryption failed while reading NVS entry

ESP_ERR_NVS_XTS_CFG_FAILED (0x1113, 4371): XTS configuration setting failed

ESP_ERR_NVS_XTS_CFG_NOT_FOUND (0x1114, 4372): XTS configuration not found

ESP_ERR_NVS_ENCR_NOT_SUPPORTED (0x1115, 4373): NVS encryption is not supported in this version

ESP_ERR_NVS_KEYS_NOT_INITIALIZED (0x1116, 4374): NVS key partition is uninitialized

ESP_ERR_NVS_CORRUPT_KEY_PART (0x1117, 4375): NVS key partition is corrupt

ESP_ERR_NVS_CONTENT_DIFFERS (0x1118, 4376): Internal error; never returned by nvs API functions. NVS key is different in comparison

ESP_ERR_NVS_WRONG_ENCRYPTION (0x1119, 4377): NVS partition is marked as encrypted with generic flash encryption. This is forbidden since the NVS encryption works differently.

ESP_ERR_ULP_BASE (0x1200, 4608): Offset for ULP-related error codes

ESP_ERR_ULP_SIZE_TOO_BIG (0x1201, 4609): Program doesn't fit into RTC memory reserved for the ULP

ESP_ERR_ULP_INVALID_LOAD_ADDR (0x1202, 4610): Load address is outside of RTC memory reserved for the ULP

ESP_ERR_ULP_DUPLICATE_LABEL (0x1203, 4611): More than one label with the same number was defined

ESP_ERR_ULP_UNDEFINED_LABEL (0x1204, 4612): Branch instructions references an undefined label

ESP_ERR_ULP_BRANCH_OUT_OF_RANGE (0x1205, 4613): Branch target is out of range of B instruction (try replacing with BX)

ESP_ERR_OTA_BASE (0x1500, 5376): Base error code for ota_ops api

ESP_ERR_OTA_PARTITION_CONFLICT (0x1501, 5377): Error if request was to write or erase the current running partition

ESP_ERR_OTA_SELECT_INFO_INVALID (0x1502, 5378): Error if OTA data partition contains invalid content

ESP_ERR_OTA_VALIDATE_FAILED (0x1503, 5379): Error if OTA app image is invalid

ESP_ERR_OTA_SMALL_SEC_VER (0x1504, 5380): Error if the firmware has a secure version less than the running firmware.

ESP_ERR_OTA_ROLLBACK_FAILED (0x1505, 5381): Error if flash does not have valid firmware in passive partition and hence rollback is not possible

ESP_ERR_OTA_ROLLBACK_INVALID_STATE (0x1506, 5382): Error if current active firmware is still marked in pending validation state (ESP_OTA_IMG_PENDING_VERIFY), essentially first boot of firmware image post upgrade and hence firmware upgrade is not possible

ESP_ERR_OTA_ALREADY_IN_PROGRESS (0x1507, 5383): Error if another OTA operation is already in progress on the same partition

ESP_ERR_OTA_SPI_MODE_MISMATCH (0x1508, 5384): Error if the firmware's SPI flash mode doesn't match the running firmware

ESP_ERR_EFUSE (0x1600, 5632): Base error code for efuse api.

ESP_OK_EFUSE_CNT (0x1601, 5633): OK the required number of bits is set.

ESP_ERR_EFUSE_CNT_IS_FULL (0x1602, 5634): Error field is full.

ESP_ERR_EFUSE_REPEATED_PROG (0x1603, 5635): Error repeated programming of programmed bits is strictly forbidden.

ESP_ERR_CODING (0x1604, 5636): Error while a encoding operation.

ESP_ERR_NOT_ENOUGH_UNUSED_KEY_BLOCKS (0x1605, 5637): Error not enough unused key blocks available

ESP_ERR_DAMAGED_READING (0x1606, 5638): Error. Burn or reset was done during a reading operation leads to damage read data. This error is internal to the efuse component and not returned by any public API.

ESP_ERR_BURN_WR_DIS (0x1607, 5639): Error to burn WR_DIS field.

ESP_ERR_IMAGE_BASE (0x2000, 8192)

ESP_ERR_IMAGE_FLASH_FAIL (0x2001, 8193)

ESP_ERR_IMAGE_INVALID (0x2002, 8194)

ESP_ERR_WIFI_BASE (0x3000, 12288): Starting number of WiFi error codes

ESP_ERR_WIFI_NOT_INIT (0x3001, 12289): WiFi driver was not installed by esp_wifi_init

ESP_ERR_WIFI_NOT_INIT (0x3001, 12289): WiFi driver was not installed by esp_wifi_init

ESP_ERR_WIFI_NOT_STARTED (0x3002, 12290): WiFi driver was not started by esp_wifi_start

ESP_ERR_WIFI_NOT_STARTED (0x3002, 12290): WiFi driver was not started by esp_wifi_start

ESP_ERR_WIFI_NOT_STOPPED (0x3003, 12291): WiFi driver was not stopped by esp_wifi_stop

ESP_ERR_WIFI_NOT_STOPPED (0x3003, 12291): WiFi driver was not stopped by esp_wifi_stop

ESP_ERR_WIFI_IF (0x3004, 12292): WiFi interface error

ESP_ERR_WIFI_IF (0x3004, 12292): WiFi interface error

ESP_ERR_WIFI_MODE (0x3005, 12293): WiFi mode error

ESP_ERR_WIFI_MODE (0x3005, 12293): WiFi mode error

ESP_ERR_WIFI_STATE (0x3006, 12294): WiFi internal state error

ESP_ERR_WIFI_STATE (0x3006, 12294): WiFi internal state error

ESP_ERR_WIFI_CONN (0x3007, 12295): WiFi internal control block of station or soft-AP error

ESP_ERR_WIFI_CONN (0x3007, 12295): WiFi internal control block of station or soft-AP error

ESP_ERR_WIFI_NVS (0x3008, 12296): WiFi internal NVS module error

ESP_ERR_WIFI_NVS (0x3008, 12296): WiFi internal NVS module error

ESP_ERR_WIFI_MAC (0x3009, 12297): MAC address is invalid

ESP_ERR_WIFI_MAC (0x3009, 12297): MAC address is invalid

ESP_ERR_WIFI_SSID (0x300a, 12298): SSID is invalid

ESP_ERR_WIFI_SSID (0x300a, 12298): SSID is invalid

ESP_ERR_WIFI_PASSWORD (0x300b, 12299): Password is invalid

ESP_ERR_WIFI_PASSWORD (0x300b, 12299): Password is invalid

ESP_ERR_WIFI_TIMEOUT (0x300c, 12300): Timeout error

ESP_ERR_WIFI_TIMEOUT (0x300c, 12300): Timeout error

ESP_ERR_WIFI_WAKE_FAIL (0x300d, 12301): WiFi is in sleep state(RF closed) and wakeup fail

ESP_ERR_WIFI_WAKE_FAIL (0x300d, 12301): WiFi is in sleep state(RF closed) and wakeup fail

ESP_ERR_WIFI_WOULD_BLOCK (0x300e, 12302): The caller would block

ESP_ERR_WIFI_WOULD_BLOCK (0x300e, 12302): The caller would block

ESP_ERR_WIFI_NOT_CONNECT (0x300f, 12303): Station still in disconnect status

ESP_ERR_WIFI_NOT_CONNECT (0x300f, 12303): Station still in disconnect status

ESP_ERR_WIFI_POST (0x3012, 12306): Failed to post the event to WiFi task

ESP_ERR_WIFI_POST (0x3012, 12306): Failed to post the event to WiFi task

ESP_ERR_WIFI_INIT_STATE (0x3013, 12307): Invalid WiFi state when init/deinit is called

ESP_ERR_WIFI_INIT_STATE (0x3013, 12307): Invalid WiFi state when init/deinit is called

ESP_ERR_WIFI_STOP_STATE (0x3014, 12308): Returned when WiFi is stopping

ESP_ERR_WIFI_STOP_STATE (0x3014, 12308): Returned when WiFi is stopping

ESP_ERR_WIFI_NOT_ASSOC (0x3015, 12309): The WiFi connection is not associated

ESP_ERR_WIFI_NOT_ASSOC (0x3015, 12309): The WiFi connection is not associated

ESP_ERR_WIFI_TX_DISALLOW (0x3016, 12310): The WiFi TX is disallowed

ESP_ERR_WIFI_TX_DISALLOW (0x3016, 12310): The WiFi TX is disallowed

ESP_ERR_WIFI_TWT_FULL (0x3017, 12311): no available flow id

ESP_ERR_WIFI_TWT_FULL (0x3017, 12311): no available flow id

ESP_ERR_WIFI_TWT_SETUP_TIMEOUT (0x3018, 12312): Timeout of receiving twt setup response frame, timeout times can be set during twt setup

ESP_ERR_WIFI_TWT_SETUP_TIMEOUT (0x3018, 12312): Timeout of receiving twt setup response frame, timeout times can be set during twt setup

ESP_ERR_WIFI_TWT_SETUP_TXFAIL (0x3019, 12313): TWT setup frame tx failed

ESP_ERR_WIFI_TWT_SETUP_TXFAIL (0x3019, 12313): TWT setup frame tx failed

ESP_ERR_WIFI_TWT_SETUP_REJECT (0x301a, 12314): The twt setup request was rejected by the AP

ESP_ERR_WIFI_TWT_SETUP_REJECT (0x301a, 12314): The twt setup request was rejected by the AP

ESP_ERR_WIFI_DISCARD (0x301b, 12315): Discard frame

ESP_ERR_WIFI_DISCARD (0x301b, 12315): Discard frame

ESP_ERR_WIFI_ROC_IN_PROGRESS (0x301c, 12316): ROC op is in progress

ESP_ERR_WIFI_ROC_IN_PROGRESS (0x301c, 12316): ROC op is in progress

ESP_ERR_WIFI_REGISTRAR (0x3033, 12339): WPS registrar is not supported

ESP_ERR_WIFI_WPS_TYPE (0x3034, 12340): WPS type error

ESP_ERR_WIFI_WPS_SM (0x3035, 12341): WPS state machine is not initialized

ESP_ERR_ESPNOW_BASE (0x3064, 12388): ESPNOW error number base.

ESP_ERR_ESPNOW_BASE (0x3064, 12388): ESPNOW error number base.

ESP_ERR_ESPNOW_NOT_INIT (0x3065, 12389): ESPNOW is not initialized.

ESP_ERR_ESPNOW_NOT_INIT (0x3065, 12389): ESPNOW is not initialized.

ESP_ERR_ESPNOW_ARG (0x3066, 12390): Invalid argument

ESP_ERR_ESPNOW_ARG (0x3066, 12390): Invalid argument

ESP_ERR_ESPNOW_NO_MEM (0x3067, 12391): Out of memory

ESP_ERR_ESPNOW_NO_MEM (0x3067, 12391): Out of memory

ESP_ERR_ESPNOW_FULL (0x3068, 12392): ESPNOW peer list is full

ESP_ERR_ESPNOW_FULL (0x3068, 12392): ESPNOW peer list is full

ESP_ERR_ESPNOW_NOT_FOUND (0x3069, 12393): ESPNOW peer is not found

ESP_ERR_ESPNOW_NOT_FOUND (0x3069, 12393): ESPNOW peer is not found

ESP_ERR_ESPNOW_INTERNAL (0x306a, 12394): Internal error

ESP_ERR_ESPNOW_INTERNAL (0x306a, 12394): Internal error

ESP_ERR_ESPNOW_EXIST (0x306b, 12395): ESPNOW peer has existed

ESP_ERR_ESPNOW_EXIST (0x306b, 12395): ESPNOW peer has existed

ESP_ERR_ESPNOW_IF (0x306c, 12396): Interface error

ESP_ERR_ESPNOW_IF (0x306c, 12396): Interface error

ESP_ERR_ESPNOW_CHAN (0x306d, 12397): Channel error

ESP_ERR_ESPNOW_CHAN (0x306d, 12397): Channel error

ESP_ERR_DPP_FAILURE (0x3097, 12439): Generic failure during DPP Operation

ESP_ERR_DPP_TX_FAILURE (0x3098, 12440): DPP Frame Tx failed OR not Acked

ESP_ERR_DPP_INVALID_ATTR (0x3099, 12441): Encountered invalid DPP Attribute

ESP_ERR_DPP_AUTH_TIMEOUT (0x309a, 12442): DPP Auth response was not received in time

ESP_ERR_DPP_INVALID_LIST (0x309b, 12443): Channel list given in esp_supp_dpp_bootstrap_gen() is not valid or too big

ESP_ERR_DPP_CONF_TIMEOUT (0x309c, 12444): DPP Configuration was not received in time

ESP_ERR_MESH_BASE (0x4000, 16384): Starting number of MESH error codes

ESP_ERR_MESH_WIFI_NOT_START (0x4001, 16385): Wi-Fi isn't started

ESP_ERR_MESH_WIFI_NOT_START (0x4001, 16385): Wi-Fi isn't started

ESP_ERR_MESH_NOT_INIT (0x4002, 16386): mesh isn't initialized

ESP_ERR_MESH_NOT_INIT (0x4002, 16386): mesh isn't initialized

ESP_ERR_MESH_NOT_CONFIG (0x4003, 16387): mesh isn't configured

ESP_ERR_MESH_NOT_CONFIG (0x4003, 16387): mesh isn't configured

ESP_ERR_MESH_NOT_START (0x4004, 16388): mesh isn't started

ESP_ERR_MESH_NOT_START (0x4004, 16388): mesh isn't started

ESP_ERR_MESH_NOT_SUPPORT (0x4005, 16389): not supported yet

ESP_ERR_MESH_NOT_SUPPORT (0x4005, 16389): not supported yet

ESP_ERR_MESH_NOT_ALLOWED (0x4006, 16390): operation is not allowed

ESP_ERR_MESH_NOT_ALLOWED (0x4006, 16390): operation is not allowed

ESP_ERR_MESH_NO_MEMORY (0x4007, 16391): out of memory

ESP_ERR_MESH_NO_MEMORY (0x4007, 16391): out of memory

ESP_ERR_MESH_ARGUMENT (0x4008, 16392): illegal argument

ESP_ERR_MESH_ARGUMENT (0x4008, 16392): illegal argument

ESP_ERR_MESH_EXCEED_MTU (0x4009, 16393): packet size exceeds MTU

ESP_ERR_MESH_EXCEED_MTU (0x4009, 16393): packet size exceeds MTU

ESP_ERR_MESH_TIMEOUT (0x400a, 16394): timeout

ESP_ERR_MESH_TIMEOUT (0x400a, 16394): timeout

ESP_ERR_MESH_DISCONNECTED (0x400b, 16395): disconnected with parent on station interface

ESP_ERR_MESH_DISCONNECTED (0x400b, 16395): disconnected with parent on station interface

ESP_ERR_MESH_QUEUE_FAIL (0x400c, 16396): queue fail

ESP_ERR_MESH_QUEUE_FAIL (0x400c, 16396): queue fail

ESP_ERR_MESH_QUEUE_FULL (0x400d, 16397): queue full

ESP_ERR_MESH_QUEUE_FULL (0x400d, 16397): queue full

ESP_ERR_MESH_NO_PARENT_FOUND (0x400e, 16398): no parent found to join the mesh network

ESP_ERR_MESH_NO_PARENT_FOUND (0x400e, 16398): no parent found to join the mesh network

ESP_ERR_MESH_NO_ROUTE_FOUND (0x400f, 16399): no route found to forward the packet

ESP_ERR_MESH_NO_ROUTE_FOUND (0x400f, 16399): no route found to forward the packet

ESP_ERR_MESH_OPTION_NULL (0x4010, 16400): no option found

ESP_ERR_MESH_OPTION_NULL (0x4010, 16400): no option found

ESP_ERR_MESH_OPTION_UNKNOWN (0x4011, 16401): unknown option

ESP_ERR_MESH_OPTION_UNKNOWN (0x4011, 16401): unknown option

ESP_ERR_MESH_XON_NO_WINDOW (0x4012, 16402): no window for software flow control on upstream

ESP_ERR_MESH_XON_NO_WINDOW (0x4012, 16402): no window for software flow control on upstream

ESP_ERR_MESH_INTERFACE (0x4013, 16403): low-level Wi-Fi interface error

ESP_ERR_MESH_INTERFACE (0x4013, 16403): low-level Wi-Fi interface error

ESP_ERR_MESH_DISCARD_DUPLICATE (0x4014, 16404): discard the packet due to the duplicate sequence number

ESP_ERR_MESH_DISCARD_DUPLICATE (0x4014, 16404): discard the packet due to the duplicate sequence number

ESP_ERR_MESH_DISCARD (0x4015, 16405): discard the packet

ESP_ERR_MESH_DISCARD (0x4015, 16405): discard the packet

ESP_ERR_MESH_VOTING (0x4016, 16406): vote in progress

ESP_ERR_MESH_VOTING (0x4016, 16406): vote in progress

ESP_ERR_MESH_XMIT (0x4017, 16407): TX fail, the tx state is a value other than timeout and disconnect

ESP_ERR_MESH_XMIT (0x4017, 16407): TX fail, the tx state is a value other than timeout and disconnect

ESP_ERR_MESH_QUEUE_READ (0x4018, 16408): error in reading queue

ESP_ERR_MESH_QUEUE_READ (0x4018, 16408): error in reading queue

ESP_ERR_MESH_PS (0x4019, 16409): mesh PS is not specified as enable or disable

ESP_ERR_MESH_PS (0x4019, 16409): mesh PS is not specified as enable or disable

ESP_ERR_MESH_RECV_RELEASE (0x401a, 16410): release esp_mesh_recv_toDS

ESP_ERR_MESH_RECV_RELEASE (0x401a, 16410): release esp_mesh_recv_toDS

ESP_ERR_ESP_NETIF_BASE (0x5000, 20480)

ESP_ERR_ESP_NETIF_INVALID_PARAMS (0x5001, 20481)

ESP_ERR_ESP_NETIF_IF_NOT_READY (0x5002, 20482)

ESP_ERR_ESP_NETIF_DHCPC_START_FAILED (0x5003, 20483)

ESP_ERR_ESP_NETIF_DHCP_ALREADY_STARTED (0x5004, 20484)

ESP_ERR_ESP_NETIF_DHCP_ALREADY_STOPPED (0x5005, 20485)

ESP_ERR_ESP_NETIF_NO_MEM (0x5006, 20486)

ESP_ERR_ESP_NETIF_DHCP_NOT_STOPPED (0x5007, 20487)

ESP_ERR_ESP_NETIF_DRIVER_ATTACH_FAILED (0x5008, 20488)

ESP_ERR_ESP_NETIF_INIT_FAILED (0x5009, 20489)

ESP_ERR_ESP_NETIF_DNS_NOT_CONFIGURED (0x500a, 20490)

ESP_ERR_ESP_NETIF_MLD6_FAILED (0x500b, 20491)

ESP_ERR_ESP_NETIF_IP6_ADDR_FAILED (0x500c, 20492)

ESP_ERR_ESP_NETIF_DHCPS_START_FAILED (0x500d, 20493)

ESP_ERR_ESP_NETIF_TX_FAILED (0x500e, 20494)

ESP_ERR_FLASH_BASE (0x6000, 24576): Starting number of flash error codes

ESP_ERR_FLASH_OP_FAIL (0x6001, 24577): aligned with rom

ESP_ERR_FLASH_OP_TIMEOUT (0x6002, 24578): aligned with rom

ESP_ERR_FLASH_NOT_INITIALISED (0x6003, 24579): esp_flash_chip_t structure not correctly initialised by esp_flash_init().

ESP_ERR_FLASH_UNSUPPORTED_HOST (0x6004, 24580): Requested operation isn't supported via this host SPI bus (chip->spi field).

ESP_ERR_FLASH_UNSUPPORTED_CHIP (0x6005, 24581): Requested operation isn't supported by this model of SPI flash chip.

ESP_ERR_FLASH_PROTECTED (0x6006, 24582): Write operation failed due to chip's write protection being enabled.

ESP_ERR_HTTP_BASE (0x7000, 28672): Starting number of HTTP error codes

ESP_ERR_HTTP_MAX_REDIRECT (0x7001, 28673): The error exceeds the number of HTTP redirects

ESP_ERR_HTTP_CONNECT (0x7002, 28674): Error open the HTTP connection

ESP_ERR_HTTP_WRITE_DATA (0x7003, 28675): Error write HTTP data

ESP_ERR_HTTP_FETCH_HEADER (0x7004, 28676): Error read HTTP header from server

ESP_ERR_HTTP_INVALID_TRANSPORT (0x7005, 28677): There are no transport support for the input scheme

ESP_ERR_HTTP_CONNECTING (0x7006, 28678): HTTP connection hasn't been established yet

ESP_ERR_HTTP_EAGAIN (0x7007, 28679): Mapping of errno EAGAIN to esp_err_t

ESP_ERR_HTTP_CONNECTION_CLOSED (0x7008, 28680): Read FIN from peer and the connection closed

ESP_ERR_HTTP_NOT_MODIFIED (0x7009, 28681): HTTP 304 Not Modified, no update available

ESP_ERR_HTTP_RANGE_NOT_SATISFIABLE (0x700a, 28682): HTTP 416 Range Not Satisfiable, requested range in header is incorrect

ESP_ERR_HTTP_READ_TIMEOUT (0x700b, 28683): HTTP data read timeout

ESP_ERR_HTTP_INCOMPLETE_DATA (0x700c, 28684): Incomplete data received, less than Content-Length or last chunk

ESP_ERR_HTTP_REDIRECT_DOWNGRADE (0x700d, 28685): HTTPS origin redirected to a non-HTTPS scheme (downgrade blocked)

ESP_ERR_HTTP_HEADER_TOO_LONG (0x700e, 28686): A single request header is larger than buffer_size_tx and cannot be sent (only when CONFIG_ESP_HTTP_CLIENT_STRICT_HEADER_BUFFER is enabled)

ESP_ERR_ESP_TLS_BASE (0x8000, 32768): Starting number of ESP-TLS error codes

ESP_ERR_ESP_TLS_CANNOT_RESOLVE_HOSTNAME (0x8001, 32769): Error if hostname couldn't be resolved upon tls connection

ESP_ERR_ESP_TLS_CANNOT_CREATE_SOCKET (0x8002, 32770): Failed to create socket

ESP_ERR_ESP_TLS_UNSUPPORTED_PROTOCOL_FAMILY (0x8003, 32771): Unsupported protocol family

ESP_ERR_ESP_TLS_FAILED_CONNECT_TO_HOST (0x8004, 32772): Failed to connect to host

ESP_ERR_ESP_TLS_SOCKET_SETOPT_FAILED (0x8005, 32773): failed to set/get socket option

ESP_ERR_ESP_TLS_CONNECTION_TIMEOUT (0x8006, 32774): new connection in esp_tls_low_level_conn connection timeouted

ESP_ERR_ESP_TLS_SE_FAILED (0x8007, 32775): esp-tls use Secure Element returned failed

ESP_ERR_ESP_TLS_TCP_CLOSED_FIN (0x8008, 32776): esp-tls's TPC transport connection has benn closed (in a clean way)

ESP_ERR_ESP_TLS_SERVER_HANDSHAKE_TIMEOUT (0x8009, 32777): TLS handshake timeout

ESP_ERR_MBEDTLS_CERT_PARTLY_OK (0x8010, 32784): mbedtls parse certificates was partly successful

ESP_ERR_MBEDTLS_CTR_DRBG_SEED_FAILED (0x8011, 32785): mbedtls api returned error

ESP_ERR_MBEDTLS_SSL_SET_HOSTNAME_FAILED (0x8012, 32786): mbedtls api returned error

ESP_ERR_MBEDTLS_SSL_CONFIG_DEFAULTS_FAILED (0x8013, 32787): mbedtls api returned error

ESP_ERR_MBEDTLS_SSL_CONF_ALPN_PROTOCOLS_FAILED (0x8014, 32788): mbedtls api returned error

ESP_ERR_MBEDTLS_X509_CRT_PARSE_FAILED (0x8015, 32789): mbedtls api returned error

ESP_ERR_MBEDTLS_SSL_CONF_OWN_CERT_FAILED (0x8016, 32790): mbedtls api returned error

ESP_ERR_MBEDTLS_SSL_SETUP_FAILED (0x8017, 32791): mbedtls api returned error

ESP_ERR_MBEDTLS_SSL_WRITE_FAILED (0x8018, 32792): mbedtls api returned error

ESP_ERR_MBEDTLS_PK_PARSE_KEY_FAILED (0x8019, 32793): mbedtls api returned failed

ESP_ERR_MBEDTLS_SSL_HANDSHAKE_FAILED (0x801a, 32794): mbedtls api returned failed

ESP_ERR_MBEDTLS_SSL_CONF_PSK_FAILED (0x801b, 32795): mbedtls api returned failed

ESP_ERR_MBEDTLS_SSL_TICKET_SETUP_FAILED (0x801c, 32796): mbedtls api returned failed

ESP_ERR_MBEDTLS_SSL_READ_FAILED (0x801d, 32797): mbedtls api returned failed

ESP_ERR_HTTPS_OTA_BASE (0x9000, 36864)

ESP_ERR_HTTPS_OTA_IN_PROGRESS (0x9001, 36865): OTA operation in progress

ESP_ERR_HTTPD_BASE (0xb000, 45056): Starting number of HTTPD error codes

ESP_ERR_HTTPD_HANDLERS_FULL (0xb001, 45057): All slots for registering URI handlers have been consumed

ESP_ERR_HTTPD_HANDLER_EXISTS (0xb002, 45058): URI handler with same method and target URI already registered

ESP_ERR_HTTPD_INVALID_REQ (0xb003, 45059): Invalid request pointer

ESP_ERR_HTTPD_RESULT_TRUNC (0xb004, 45060): Result string truncated

ESP_ERR_HTTPD_RESP_HDR (0xb005, 45061): Response header field larger than supported

ESP_ERR_HTTPD_RESP_SEND (0xb006, 45062): Error occurred while sending response packet

ESP_ERR_HTTPD_ALLOC_MEM (0xb007, 45063): Failed to dynamically allocate memory for resource

ESP_ERR_HTTPD_TASK (0xb008, 45064): Failed to launch server task/thread

ESP_ERR_HW_CRYPTO_BASE (0xc000, 49152): Starting number of HW cryptography module error codes

ESP_ERR_HW_CRYPTO_DS_HMAC_FAIL (0xc001, 49153): HMAC peripheral problem

ESP_ERR_HW_CRYPTO_DS_INVALID_KEY (0xc002, 49154): given HMAC key isn't correct

ESP_ERR_HW_CRYPTO_DS_INVALID_DIGEST (0xc004, 49156): message digest check failed

ESP_ERR_HW_CRYPTO_DS_INVALID_PADDING (0xc005, 49157): padding check failed, but result

ESP_ERR_MEMPROT_BASE (0xd000, 53248): Starting number of Memory Protection API error codes

ESP_ERR_MEMPROT_MEMORY_TYPE_INVALID (0xd001, 53249): Memory type invalid in given context

ESP_ERR_MEMPROT_SPLIT_ADDR_INVALID (0xd002, 53250): Splitting address invalid in given context

ESP_ERR_MEMPROT_SPLIT_ADDR_OUT_OF_RANGE (0xd003, 53251): Splitting address out of range

ESP_ERR_MEMPROT_SPLIT_ADDR_UNALIGNED (0xd004, 53252): Splitting address not aligned to required boundaries

ESP_ERR_MEMPROT_UNIMGMT_BLOCK_INVALID (0xd005, 53253): Required unified-management block is not valid

ESP_ERR_MEMPROT_WORLD_INVALID (0xd006, 53254): Required World identifier is not valid

ESP_ERR_MEMPROT_AREA_INVALID (0xd007, 53255): Required Area identifier is not valid

ESP_ERR_MEMPROT_CPUID_INVALID (0xd008, 53256): Required CPU/Core identifier is not valid

ESP_ERR_TCP_TRANSPORT_BASE (0xe000, 57344): Starting number of TCP Transport error codes

ESP_ERR_TCP_TRANSPORT_CONNECTION_TIMEOUT (0xe001, 57345): Connection has timed out

ESP_ERR_TCP_TRANSPORT_CONNECTION_CLOSED_BY_FIN (0xe002, 57346): Read FIN from peer and the connection has closed (in a clean way)

ESP_ERR_TCP_TRANSPORT_CONNECTION_FAILED (0xe003, 57347): Failed to connect to the peer

ESP_ERR_TCP_TRANSPORT_NO_MEM (0xe004, 57348): Memory allocation failed

ESP_ERR_NVS_SEC_BASE (0xf000, 61440): Starting number of error codes

ESP_ERR_NVS_SEC_HMAC_KEY_NOT_FOUND (0xf001, 61441): HMAC Key required to generate the NVS encryption keys not found

ESP_ERR_NVS_SEC_HMAC_KEY_BLK_ALREADY_USED (0xf002, 61442): Provided eFuse block for HMAC key generation is already in use

ESP_ERR_NVS_SEC_HMAC_KEY_GENERATION_FAILED (0xf003, 61443): Failed to generate/write the HMAC key to eFuse

ESP_ERR_NVS_SEC_HMAC_XTS_KEYS_DERIV_FAILED (0xf004, 61444): Failed to derive the NVS encryption keys based on the HMAC-based scheme


此文档对您有帮助吗?