Skip to content

esp32s2 debug build errors in wifi_reset #3688

Closed
@jepler

Description

@jepler

In a debug build

ESP_ERROR_CHECK failed: esp_err_t 0x106 (ESP_ERR_NOT_SUPPORTED) at 0x4002f190
file: "common-hal/wifi/__init__.c" line 147
func: wifi_reset
expression: esp_netif_deinit()

abort() was called at PC 0x4002f193 on core 0
Setting breakpoint at 0x400304fa and returning...

It appears esp_netif_deinit() never succeeds:

esp_err_t esp_netif_deinit(void)
{
    if (tcpip_initialized == true) {
        /* deinit of LwIP not supported:
         * do not deinit semaphores and states,
         * so init could be called multiple times
         *
        tcpip_initialized = false;
        sys_sem_free(&api_sync_sem);
        sys_sem_free(&api_lock_sem);
         */
        return ESP_ERR_NOT_SUPPORTED;

    }
    return ESP_ERR_INVALID_STATE;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    crashespressifapplies to multiple Espressif chips

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions