关于esp32模块,使用官方wifi例子烧录后出错EFUSE CRC问题
关于esp32模块,使用官方wifi例子烧录后出错EFUSE CRC问题
一、基本信息
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
二、问题 为什么,试了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
烦请帮忙提供解决办法,谢谢。
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
二、问题 为什么,试了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问题
你是使用的小米的模组吗?
Re: 关于esp32模块,使用官方wifi例子烧录后出错EFUSE CRC问题
同问,这是咋回事?
-
- Posts: 786
- Joined: Wed Nov 14, 2018 8:45 am
Re: 关于esp32模块,使用官方wifi例子烧录后出错EFUSE CRC问题
需要确认模组来源,方便的话请提供一下照片。
为了能正常使用板子的其他功能,暂时的 workaround 为使用用户侧的 mac,可以在 app_main 的开始添加以下代码:
注:以上代码仅供临时绕过该问题,进行其他功能开发,不可用于产品中。
为了能正常使用板子的其他功能,暂时的 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问题
我的小米模组 esp-wroom-32d 出现一样问题,求解
Re: 关于esp32模块,使用官方wifi例子烧录后出错EFUSE CRC问题
我用小米模块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 ...
这是什么情况呢?
报错[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问题
我的小米模组 esp-wroom-32d 也是同样的问题。
Re: 关于esp32模块,使用官方wifi例子烧录后出错EFUSE CRC问题
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();
Re: 关于esp32模块,使用官方wifi例子烧录后出错EFUSE CRC问题
感觉这个应该还是内部出错了,只是没有报出来而已。cqh963852 wrote: ↑Fri Dec 25, 2020 9:39 am我把官方的例子换成了这个,不会报错了,但是手机搜索不到ssid。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();
用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)
我碰到的错误
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 113 guests