关于esp32模块,使用官方wifi例子烧录后出错EFUSE CRC问题

tzw51723
Posts: 1
Joined: Wed Apr 17, 2019 1:00 am

关于esp32模块,使用官方wifi例子烧录后出错EFUSE CRC问题

Postby tzw51723 » Wed Apr 17, 2019 1:17 am

一、基本信息
1.模块:ESP32-WROOM-32X-TestBoard v1.1(ESP32-WROOM-32U)
2.使用例子:
例子1:/home/tony/esp/esp-idf/examples/wifi/scan
例子2:/home/tony/esp/esp-idf/examples/wifi/smart_config
例子3:/home/tony/esp/esp-idf/examples/wifi/power_save
3.使用menuconfig配置freertos

二、问题
微信图片_20190417091110.png
微信图片_20190417091110.png (34.28 KiB) Viewed 19311 times
为什么,试了3个例子,都是同样问题,出现:
Base MAC address form BLK0 of EFUSE CRC error, efuse_crc = 0x23; calc_crc = 0xf5
abort() was called at PC 0x400d1a13 on core 0


烦请帮忙提供解决办法,谢谢。

sjkyspa
Posts: 2
Joined: Tue Apr 23, 2019 6:40 am

Re: 关于esp32模块,使用官方wifi例子烧录后出错EFUSE CRC问题

Postby sjkyspa » Tue Apr 23, 2019 6:42 am

同问

sjkyspa
Posts: 2
Joined: Tue Apr 23, 2019 6:40 am

Re: 关于esp32模块,使用官方wifi例子烧录后出错EFUSE CRC问题

Postby sjkyspa » Tue Apr 23, 2019 9:15 am

你是使用的小米的模组吗?

leon_duan
Posts: 1
Joined: Fri Oct 11, 2019 12:15 pm

Re: 关于esp32模块,使用官方wifi例子烧录后出错EFUSE CRC问题

Postby leon_duan » Fri Oct 11, 2019 12:16 pm

同问,这是咋回事?

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: 关于esp32模块,使用官方wifi例子烧录后出错EFUSE CRC问题

Postby ESP_Gargamel » Fri Nov 08, 2019 3:01 am

需要确认模组来源,方便的话请提供一下照片。

为了能正常使用板子的其他功能,暂时的 workaround 为使用用户侧的 mac,可以在 app_main 的开始添加以下代码:

Code: Select all

uint8_t mac[6] = {0x12, 0x34, 0x56, 0x78, 0x90};
esp_base_mac_addr_set(mac);
注:以上代码仅供临时绕过该问题,进行其他功能开发,不可用于产品中。

guoyun
Posts: 2
Joined: Wed Jun 10, 2020 3:25 am

Re: 关于esp32模块,使用官方wifi例子烧录后出错EFUSE CRC问题

Postby guoyun » Mon Jun 22, 2020 8:31 am

我的小米模组 esp-wroom-32d 出现一样问题,求解

zylxcu1
Posts: 1
Joined: Fri Aug 14, 2020 9:31 am

Re: 关于esp32模块,使用官方wifi例子烧录后出错EFUSE CRC问题

Postby zylxcu1 » Fri Aug 14, 2020 10:09 am

我用小米模块ESP-WROOM-32x-Testboardv1.1,板载ESP-WROOM-32D模组,用flash_download_tool_v3.8.5,烧写helloworld程序,

报错[2020-08-14 17:52:09,335][ESP8266Loader_spi[1]][espDownloader.py][line:562][ERROR]: ESP32 Chip efuse check error esp_check_mac_and_efuse.
[2020-08-14 17:52:09,440][EspDownloadPanel_ESP32_spi(1)][download_panel_info.py][line:494][INFO]: *********************
[2020-08-14 17:52:09,451][EspDownloadPanel_ESP32_spi(1)][download_panel_info.py][line:495][INFO]: pic path: ./RESOURCE/ERROR_S.bmp
[2020-08-14 17:52:09,464][EspDownloadPanel_ESP32_spi(1)][download_panel_info.py][line:496][INFO]: ***********************
[2020-08-14 17:52:09,549][EspDownloadPanel_ESP32_spi(1)][download_panel_info.py][line:524][INFO]: KEY PATH NONE...
no log file output ...


这是什么情况呢?

cqh963852
Posts: 10
Joined: Fri Dec 11, 2020 1:17 pm

Re: 关于esp32模块,使用官方wifi例子烧录后出错EFUSE CRC问题

Postby cqh963852 » Thu Dec 24, 2020 3:56 pm

我的小米模组 esp-wroom-32d 也是同样的问题。

cqh963852
Posts: 10
Joined: Fri Dec 11, 2020 1:17 pm

Re: 关于esp32模块,使用官方wifi例子烧录后出错EFUSE CRC问题

Postby cqh963852 » Fri Dec 25, 2020 9:39 am

Code: Select all

    //1
    esp_netif_init();
    esp_event_loop_create_default();
    esp_netif_create_default_wifi_ap();

    wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
    esp_wifi_init(&cfg);
    esp_event_handler_instance_register(WIFI_EVENT,
                                        ESP_EVENT_ANY_ID,
                                        &wifi_event_handler,
                                        NULL,
                                        NULL);
    //2
    esp_wifi_set_mode(WIFI_MODE_AP);
    wifi_config_t wifi_config = {
        .ap = {
            .ssid = EXAMPLE_ESP_WIFI_SSID,
            .ssid_len = strlen(EXAMPLE_ESP_WIFI_SSID),
            .ssid_hidden = 0,
            .channel = EXAMPLE_ESP_WIFI_CHANNEL,
            .password = EXAMPLE_ESP_WIFI_PASS,
            .max_connection = EXAMPLE_MAX_STA_CONN,
            .authmode = WIFI_AUTH_WPA_WPA2_PSK},
    };
    esp_wifi_set_config(ESP_IF_WIFI_AP, &wifi_config);
    esp_wifi_start();
我把官方的例子换成了这个,不会报错了,但是手机搜索不到ssid。

cqh963852
Posts: 10
Joined: Fri Dec 11, 2020 1:17 pm

Re: 关于esp32模块,使用官方wifi例子烧录后出错EFUSE CRC问题

Postby cqh963852 » Fri Dec 25, 2020 3:53 pm

cqh963852 wrote:
Fri Dec 25, 2020 9:39 am

Code: Select all

    //1
    esp_netif_init();
    esp_event_loop_create_default();
    esp_netif_create_default_wifi_ap();

    wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
    esp_wifi_init(&cfg);
    esp_event_handler_instance_register(WIFI_EVENT,
                                        ESP_EVENT_ANY_ID,
                                        &wifi_event_handler,
                                        NULL,
                                        NULL);
    //2
    esp_wifi_set_mode(WIFI_MODE_AP);
    wifi_config_t wifi_config = {
        .ap = {
            .ssid = EXAMPLE_ESP_WIFI_SSID,
            .ssid_len = strlen(EXAMPLE_ESP_WIFI_SSID),
            .ssid_hidden = 0,
            .channel = EXAMPLE_ESP_WIFI_CHANNEL,
            .password = EXAMPLE_ESP_WIFI_PASS,
            .max_connection = EXAMPLE_MAX_STA_CONN,
            .authmode = WIFI_AUTH_WPA_WPA2_PSK},
    };
    esp_wifi_set_config(ESP_IF_WIFI_AP, &wifi_config);
    esp_wifi_start();
我把官方的例子换成了这个,不会报错了,但是手机搜索不到ssid。
感觉这个应该还是内部出错了,只是没有报出来而已。

用espefuse 工具查出来mac

Code: Select all

espefuse.py get_custom_mac -p /dev/ttyS3Connecting........_____..
Detecting chip type... ESP32
espefuse.py v3.0
Custom MAC Address version 103: 00:00:00:07:8c:91 (CRC 0x00 invalid - calculated 0x57)
但是芯片上标记的mac 地址是04:cf:8c:21:80:63

我碰到的错误

Code: Select all

I (633) wifi:wifi driver task: 3ffbab54, prio:23, stack:6656, core=0
I (633) system_api: Base MAC address is not set
I (633) system_api: read default base MAC address from EFUSE
E (633) system_api: Base MAC address from BLK0 of EFUSE CRC error, efuse_crc = 0x93; calc_crc = 0xcd

abort() was called at PC 0x4010b404 on core 0
0x4010b404: esp_efuse_mac_get_default at /home/cqh/workspace/esp-idf/components/esp_common/src/mac_addr.c:110 (discriminator 3)
Last edited by cqh963852 on Wed Dec 30, 2020 10:14 am, edited 1 time in total.

Who is online

Users browsing this forum: No registered users and 27 guests