Page 1 of 2
关于esp32模块,使用官方wifi例子烧录后出错EFUSE CRC问题
Posted: Wed Apr 17, 2019 1:17 am
by tzw51723
一、基本信息
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 (34.28 KiB) Viewed 19262 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
烦请帮忙提供解决办法,谢谢。
Re: 关于esp32模块,使用官方wifi例子烧录后出错EFUSE CRC问题
Posted: Tue Apr 23, 2019 6:42 am
by sjkyspa
同问
Re: 关于esp32模块,使用官方wifi例子烧录后出错EFUSE CRC问题
Posted: Tue Apr 23, 2019 9:15 am
by sjkyspa
你是使用的小米的模组吗?
Re: 关于esp32模块,使用官方wifi例子烧录后出错EFUSE CRC问题
Posted: Fri Oct 11, 2019 12:16 pm
by leon_duan
同问,这是咋回事?
Re: 关于esp32模块,使用官方wifi例子烧录后出错EFUSE CRC问题
Posted: Fri Nov 08, 2019 3:01 am
by ESP_Gargamel
需要确认模组来源,方便的话请提供一下照片。
为了能正常使用板子的其他功能,暂时的 workaround 为使用用户侧的 mac,可以在 app_main 的开始添加以下代码:
Code: Select all
uint8_t mac[6] = {0x12, 0x34, 0x56, 0x78, 0x90};
esp_base_mac_addr_set(mac);
注:以上代码仅供临时绕过该问题,进行其他功能开发,不可用于产品中。
Re: 关于esp32模块,使用官方wifi例子烧录后出错EFUSE CRC问题
Posted: Mon Jun 22, 2020 8:31 am
by guoyun
我的小米模组 esp-wroom-32d 出现一样问题,求解
Re: 关于esp32模块,使用官方wifi例子烧录后出错EFUSE CRC问题
Posted: Fri Aug 14, 2020 10:09 am
by zylxcu1
我用小米模块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 ...
这是什么情况呢?
Re: 关于esp32模块,使用官方wifi例子烧录后出错EFUSE CRC问题
Posted: Thu Dec 24, 2020 3:56 pm
by cqh963852
我的小米模组 esp-wroom-32d 也是同样的问题。
Re: 关于esp32模块,使用官方wifi例子烧录后出错EFUSE CRC问题
Posted: Fri Dec 25, 2020 9:39 am
by cqh963852
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。
Re: 关于esp32模块,使用官方wifi例子烧录后出错EFUSE CRC问题
Posted: Fri Dec 25, 2020 3:53 pm
by cqh963852
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)