新画一块ESP32-C3板子,一运行 wifi 例程就无线重启,SHA-256 comparison failed

矜辰所致_ESP32C3
Posts: 13
Joined: Thu Jan 13, 2022 3:24 am

Re: 新画一块ESP32-C3板子,一运行 wifi 例程就无线重启,SHA-256 comparison failed

Postby 矜辰所致_ESP32C3 » Thu Sep 22, 2022 5:20 am

ESP_LJY wrote:
Thu Sep 22, 2022 3:36 am
是的,修改代码重新编译下载试试。esp_wifi_start 会调用 esp_phy_load_cal_and_init(), 加些 log 检查一下是不是这个函数没有走完, 是否是 注释掉的那段代码导致的重启。
我截取了一段复位问题log:

Attempting to boot anyway...
entry 0x403ce000
I (53) boot: ESP-IDF v4.3.1-dirty 2nd stage bootloader
I (53) boot: compile time 13:13:46
I (53) boot: chip revision: 3
I (56) boot.esp32c3: SPI Speed : 80MHz
I (60) boot.esp32c3: SPI Mode : DIO
I (65) boot.esp32c3: SPI Flash Size : 4MB
I (70) boot: Enabling RNG early entropy source...
I (75) boot: Partition Table:
I (79) boot: ## Label Usage Type ST Offset Length
I (86) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (94) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (101) boot: 2 factory factory app 00 00 00010000 00100000
I (109) boot: End of partition table
I (113) esp_image: segment 0: paddr=00010020 vaddr=3c080020 size=13590h ( 79248) map
I (133) esp_image: segment 1: paddr=000235b8 vaddr=3fc8dc00 size=03138h ( 12600) load
I (136) esp_image: segment 2: paddr=000266f8 vaddr=40380000 size=09920h ( 39200) load
I (146) esp_image: segment 3: paddr=00030020 vaddr=42000020 size=771f0h (487920) map
E (221) esp_image: invalid segment length 0xffffffff
E (221) boot: Factory app partition is not bootable
E (221) boot: No bootable app partitions in the partition table
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xd (SPI_FAST_FLASH_BOOT)
Saved PC:0x403d11a0
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x1778
load:0x403ce000,len:0x8dc
load:0x403d0000,len:0x2984
SHA-256 comparison failed:
Calculated: 11d1fc32393ac3669a16c5f76445f1bf91238846d12e5ae2717043cdeb60e9fa
Expected: 7933900344e64bce5c4d16d3cccc336c461e7d9fc6d536d2032552acb855f4d9
Attempting to boot anyway...
entry 0x403ce000
I (53) boot: ESP-IDF v4.3.1-dirty 2nd stage bootloader
I (53) boot: compile time 13:13:46
I (53) boot: chip revision: 3
I (56) boot.esp32c3: SPI Speed : 80MHz
I (60) boot.esp32c3: SPI Mode : DIO
I (65) boot.esp32c3: SPI Flash Size : 4MB
I (70) boot: Enabling RNG early entropy source...
I (75) boot: Partition Table:
I (79) boot: ## Label Usage Type ST Offset Length
I (86) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (94) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (101) boot: 2 factory factory app 00 00 00010000 00100000
I (109) boot: End of partition table
I (113) esp_image: segment 0: paddr=00010020 vaddr=3c080020 size=13590h ( 79248) map
I (133) esp_image: segment 1: paddr=000235b8 vaddr=3fc8dc00 size=03138h ( 12600) load
I (136) esp_image: segment 2: paddr=000266f8 vaddr=40380000 size=09920h ( 39200) load
I (146) esp_image: segment 3: paddr=00030020 vaddr=42000020 size=771f0h (487920) map
E (221) esp_image: invalid segment length 0xffffffff
E (221) boot: Factory app partition is not bootable
E (221) boot: No bootable app partitions in the partition table
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xd (SPI_FAST_FLASH_BOOT)
Saved PC:0x403d11a0
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x1778
load:0x403ce000,len:0x8dc
load:0x403d0000,len:0x2984
SHA-256 comparison failed:
Calculated: 11d1fc32393ac3669a16c5f76445f1bf91238846d12e5ae2717043cdeb60e9fa
Expected: 7933900344e64bce5c4d16d3cccc336c461e7d9fc6d536d2032552acb855f4d9
Attempting to boot anyway...
entry 0x403ce000
I (53) boot: ESP-IDF v4.3.1-dirty 2nd stage bootloader
I (53) boot: compile time 13:13:46
I (53) boot: chip revision: 3
I (56) boot.esp32c3: SPI Speed : 80MHz
I (60) boot.esp32c3: SPI Mode : DIO
I (65) boot.esp32c3: SPI Flash Size : 4MB
I (70) boot: Enabling RNG early entropy source...
I (75) boot: Partition Table:
I (79) boot: ## Label Usage Type ST Offset Length
I (86) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (94) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (101) boot: 2 factory factory app 00 00 00010000 00100000
I (109) boot: End of partition table
I (113) esp_image: segment 0: paddr=00010020 vaddr=3c080020 size=13590h ( 79248) map
I (133) esp_image: segment 1: paddr=000235b8 vaddr=3fc8dc00 size=03138h ( 12600) load
I (136) esp_image: segment 2: paddr=000266f8 vaddr=40380000 size=09920h ( 39200) load
I (146) esp_image: segment 3: paddr=00030020 vaddr=42000020 size=771f0h (487920) map
E (221) esp_image: invalid segment length 0xffffffff
E (221) boot: Factory app partition is not bootable
E (221) boot: No bootable app partitions in the partition table
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xd (SPI_FAST_FLASH_BOOT)
Saved PC:0x403d11a0
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x1778
load:0x403ce000,len:0x8dc
load:0x403d0000,len:0x2984
SHA-256 comparison failed:
Calculated: 11d1fc32393ac3669a16c5f76445f1bf91238846d12e5ae2717043cdeb60e9fa
Expected: 7933900344e64bce5c4d16d3cccc336c461e7d9fc6d536d2032552acb855f4d9
Attempting to boot anyway...
entry 0x403ce000
I (53) boot: ESP-IDF v4.3.1-dirty 2nd stage bootloader
I (53) boot: compile time 13:13:46
I (53) boot: chip revision: 3
I (56) boot.esp32c3: SPI Speed : 80MHz
I (60) boot.esp32c3: SPI Mode : DIO
I (65) boot.esp32c3: SPI Flash Size : 4MB
I (70) boot: Enabling RNG early entropy source...
I (75) boot: Partition Table:
I (79) boot: ## Label Usage Type ST Offset Length
I (86) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (94) boot: 1 phy_init RF data 01 01 0000f000 00001000

看看能否看出什么问题,有人提示我说 wifi 启动影响晶振导致的。

ESP_LJY
Posts: 58
Joined: Mon Sep 27, 2021 3:06 am

Re: 新画一块ESP32-C3板子,一运行 wifi 例程就无线重启,SHA-256 comparison failed

Postby ESP_LJY » Thu Sep 22, 2022 6:04 am

Code: Select all

E (221) boot: No bootable app partitions in the partition table
这次的 log 和之前不同? 这句 log 表示没有烧写有效的应用程序。

矜辰所致_ESP32C3
Posts: 13
Joined: Thu Jan 13, 2022 3:24 am

Re: 新画一块ESP32-C3板子,一运行 wifi 例程就无线重启,SHA-256 comparison failed

Postby 矜辰所致_ESP32C3 » Thu Sep 22, 2022 8:46 am

ESP_LJY wrote:
Thu Sep 22, 2022 6:04 am

Code: Select all

E (221) boot: No bootable app partitions in the partition table
这次的 log 和之前不同? 这句 log 表示没有烧写有效的应用程序。
我才发现两次不停复位区别不同,但是也是因为没有头绪,导致也没有注意到这些,在有些地方请教了以后,
他们说 ESP-IDF的 DEMO 也可能有些问题的,然后让我更新最新的 ESP-IDF ,我以前用的 V4.3.1 ,去年用了一整年,然后老板子也没遇到问题,也就是最近一个月画了新板子发现了问题。

为什么不用最新版也是因为 乐鑫官方的 VSCode 插件以前更新的进度赶不上 IDF 的更新进度,就是安装新版本总是会有问题。

然后我更新了一下4.3.4 版本,发现不重启但是连接不上 wifi ,然后我又更新了一下 4.4.2 版本的 IDF,然后目前看来就正常了。

大哥,能否指点一二,我这种可能是什么问题吗? 我已经确定了不是电源供电不足的问题,有人说是wifi 启动的时候影响了晶振,SDK 初始化的时候以前的判断可能有欠缺。 不知道是不是这种问题?

如果大哥能够指点一下,对以后板子设计也有帮助啊,硬件上面能避免的最好就硬件避免了。
Attachments
1212.png
1212.png (55.61 KiB) Viewed 8968 times

zxlch_z
Posts: 23
Joined: Thu Aug 19, 2021 2:59 am

Re: 新画一块ESP32-C3板子,一运行 wifi 例程就无线重启,SHA-256 comparison failed

Postby zxlch_z » Sun Oct 02, 2022 2:25 pm

关注一下!

mizonesam
Posts: 3
Joined: Wed Jun 22, 2022 10:17 am

Re: 新画一块ESP32-C3板子,一运行 wifi 例程就无线重启,SHA-256 comparison failed

Postby mizonesam » Fri Nov 18, 2022 4:23 pm

我也遇到了这个问题了,跟SHA-256没关系,也跟供电没关系,只要WiFi连上就会触发重启。试过代码注释掉WiFi初始化的流程,板子则能稳定的正常跑不会重启。同样的板子,刚开始是不会重启的,跑了20分钟左右也会出现重启现象。现在是一连上WiFi就会出现,不知道是否WiFi那个地方干扰了芯片的稳定性,需要大佬指导下。

(776) nvs: get err =0x1102
I (776) nvs: Get rf_four_func fail!
I (786) nvs: nvs_commit Done
I (786) common: Base MAC Address read from EFUSE BLK0
I (796) common: Using "0xa0, 0x76, 0x4e, 0x43, 0xf2, 0x48" as base MAC address
I (796) common: mac address:A0764E43F248
before btn init, heap: 273412
I (806) gpio: GPIO[6]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (816) TempSensor: Initializing Temperature sensor
I (826) TempSensor: default dac 2, clk_div 6
I (826) TempSensor: Temperature sensor started
I (836) sntp: Local current time is: Thu Jan 1 08:13:46 1970
I (836) gpio: GPIO[1]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (846) gpio: GPIO[7]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (856) pp: pp rom version: 9387209
I (866) net80211: net80211 rom version: 9387209
I (876) wifi:wifi driver task: 3fca1ac4, prio:23, stack:6656, core=0
I (876) system_api: Base MAC address is not set
I (876) system_api: read default base MAC address from EFUSE
I (886) wifi:wifi firmware version: 7679c42
I (886) wifi:wifi certification version: v7.0
I (896) wifi:config NVS flash: disabled
I (896) wifi:config nano formating: disabled
I (896) wifi:Init data frame dynamic rx buffer num: 32
I (906) wifi:Init management frame dynamic rx buffer num: 32
I (906) wifi:Init management short buffer num: 32
I (916) wifi:Init dynamic tx buffer num: 32
I (916) wifi:Init static tx FG buffer num: 2
I (926) wifi:Init static rx buffer size: 1600
I (926) wifi:Init static rx buffer num: 10
I (926) wifi:Init dynamic rx buffer num: 32
I (936) wifi_init: rx ba win: 6
I (936) wifi_init: tcpip mbox: 32
I (946) wifi_init: udp mbox: 6
I (946) wifi_init: tcp mbox: 6
I (946) wifi_init: tcp tx win: 5744
I (956) wifi_init: tcp rx win: 5744
I (956) wifi_init: tcp mss: 1440
I (966) wifi_init: WiFi IRAM OP enabled
I (966) wifi_init: WiFi RX IRAM OP enabled
I (976) wifi: ESP_WIFI_MODE_STA
I (976) phy_init: phy_version 907,3369105-dirty,Dec 3 2021,14:55:12
I (986) Winta: [ESP32C3-base] call rom_temp_to_power..
I (1026) wifi:mode : sta (a0:76:4e:43:f2:48)
I (1026) wifi:enable tsf
I (1026) wifi: station event handler begin,event_base=WIFI_EVENT, event_id=2

I (1026) device: turn_led3_on
I (1026) wifi:Set ps type: 1

I (1056) wifi:new:<1,1>, old:<1,0>, ap:<255,255>, sta:<1,1>, prof:1
I (1666) wifi:state: init -> auth (b0)
I (1686) wifi:state: auth -> assoc (0)
I (1696) wifi:state: assoc -> run (10)
I (1736) wifi:connected with wintasoft, aid = 4, channel 1, 40U, bssid = 00:5c:86:15:7b:18
I (1736) wifi:security: WPA2-PSK, phy: bgn, rssi: -40
I (1736) wifi:pm start, type: 1

I (1736) wifi:set rx beacon pti, rx_bcn_pti: 14, bcn_timeout: 14, mt_pti: 25000, mt_time: 10000
I (1746) wifi: station event handler begin,event_base=WIFI_EVENT, event_id=4



I (1756) wifi:ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x1 (POWERON),boot:0xf (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x16b4
load:0x403ce000,len:0x930
load:0x403d0000,len:0x2d40
entry 0x403ce000
I (30) boot: ESP-IDF v4.4 2nd stage bootloader
I (30) boot: compile time 11:02:55
I (30) boot: chip revision: 3
I (32) boot_comm: chip revision: 3, min. bootloader chip revision: 2
I (39) boot.esp32c3: SPI Speed : 80MHz
I (43) boot.esp32c3: SPI Mode : DIO
I (48) boot.esp32c3: SPI Flash Size : 4MB
I (53) boot: Enabling RNG early entropy source...
I (58) boot: Partition Table:
I (62) boot: ## Label Usage Type ST Offset Length
I (69) boot: 0 nvs WiFi data 01 02 00009000 00004000
I (77) boot: 1 otadata OTA data 01 00 0000d000 00002000
I (84) boot: 2 phy_init RF data 01 01 0000f000 00001000
I (92) boot: 3 ota_0 OTA app 00 10 00010000 00190000
I (99) boot: 4 ota_1 OTA app 00 11 001a0000 00190000
I (107) boot: 5 storage Unknown data 01 82 00330000 00012000
I (114) boot: End of partition table
I (118) boot_comm: chip revision: 3, min. application chip revision: 2
I (126) esp_image: segment 0: paddr=00010020 vaddr=3c110020 size=39770h (235376) map
I (171) esp_image: segment 1: paddr=00049798 vaddr=3fc90200 size=03748h ( 14152) load
I (174) esp_image: segment 2: paddr=0004cee8 vaddr=40380000 size=03130h ( 12592) load
I (179) esp_image: segment 3: paddr=00050020 vaddr=42000020 size=10fad8h (1112792) map
I (359) esp_image: segment 4: paddr=0015fb00 vaddr=40383130 size=0cf04h ( 52996) load
I (369) esp_image: segment 5: paddr=0016ca0c vaddr=50000010 size=00010h ( 16) load
I (374) boot: Loaded app from partition at offset 0x10000
I (375) boot: Disabling RNG early entropy source...
I (389) cpu_start: Pro cpu up.
I (398) cpu_start: Pro cpu start user code
I (398) cpu_start: cpu freq: 160000000
I (398) cpu_start: Application information:
I (400) cpu_start: Project name: esp32c3-base
I (406) cpu_start: App version: B03
I (410) cpu_start: Compile time: Nov 19 2022 00:10:06
I (416) cpu_start: ELF file SHA256: 05f683a475197e07...
I (422) cpu_start: ESP-IDF: v4.4
I (427) heap_init: Initializing. RAM available for dynamic allocation:
I (434) heap_init: At 3FC983E0 len 00027C20 (159 KiB): DRAM
I (441) heap_init: At 3FCC0000 len 0001F060 (124 KiB): STACK/DRAM
I (447) heap_init: At 50000020 len 00001FE0 (7 KiB): RTCRAM
I (454) spi_flash: detected chip: generic
I (458) spi_flash: flash io: dio
I (463) sleep: Configure to isolate all GPIO pins in sleep state
I (469) sleep: Enable automatic switching of GPIO sleep configuration
I (476) coexist: coexist rom version 9387209
I (481) cpu_start: Starting scheduler.
I (486) Winta: [ESP32C3-base] Startup..
I (486) Winta: [APP] Free memory: 278756 bytes
I (486) Winta: [APP] IDF version: v4.4
I (496) device: Configured to led and relay GPIO!
I (506) gpio: GPIO[10]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (506) gpio: GPIO[18]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (516) gpio: GPIO[19]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (526) gpio: GPIO[2]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (536) gpio: GPIO[3]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (546) nvs: Get ssid success!
I (546) nvs: nvs_commit Done
I (556) nvs: Get pwd success!
I (556) nvs: nvs_commit Done
I (566) nvs: Nothing saved yet! key=owner_id
I (566) nvs: nvs_commit Done
I (566) nvs: Get devdef_name success!
I (576) nvs: nvs_commit Done
I (576) nvs: Nothing saved yet! key=serialno
I (586) nvs: nvs_commit Done
I (586) nvs: Get key_remark success!
I (586) nvs: nvs_commit Done
I (596) nvs: Get firmware_ver success!
I (596) nvs: nvs_commit Done
I (606) nvs: Get relay_status success!
I (606) nvs: nvs_commit Done
I (606) nvs: Get light_status success!
I (616) nvs: nvs_commit Done
I (616) nvs: get err =0x1102
I (626) nvs: Get light_mode fail!
I (626) nvs: nvs_commit Done
I (626) nvs: get err =0x1102
I (636) nvs: Get brightness fail!
I (636) nvs: nvs_commit Done
I (636) nvs: get err =0x1102
I (646) nvs: Get is_radar fail!
I (646) nvs: nvs_commit Done
I (656) nvs: get err =0x1102
I (656) nvs: Get is_alarm fail!
I (656) nvs: nvs_commit Done
I (666) nvs: get err =0x1102
I (666) nvs: Get is_wifi_offline fail!
I (666) nvs: nvs_commit Done
I (676) nvs: get err =0x1102
I (676) nvs: Get light_interval fail!
I (686) nvs: nvs_commit Done
I (686) nvs: get err =0x1102
I (686) nvs: Get radar_interval fail!
I (696) nvs: nvs_commit Done
I (696) nvs: get err =0x1102
I (696) nvs: Get fade_time fail!
I (706) nvs: nvs_commit Done
I (706) nvs: get err =0x1102
I (716) nvs: Get is_open_certifi fail!
I (716) nvs: nvs_commit Done
I (716) nvs: get err =0x1102
I (726) nvs: Get is_host fail!
I (726) nvs: nvs_commit Done
I (726) nvs: get err =0x1102
I (736) nvs: Get is_rf_control fail!
I (736) nvs: nvs_commit Done
I (746) nvs: get err =0x1102
I (746) nvs: Get rf_one_func fail!
I (746) nvs: nvs_commit Done
I (756) nvs: get err =0x1102
I (756) nvs: Get rf_two_func fail!
I (756) nvs: nvs_commit Done
I (766) nvs: get err =0x1102
I (766) nvs: Get rf_three_func fail!
I (776) nvs: nvs_commit Done
I (776) nvs: get err =0x1102
I (776) nvs: Get rf_four_func fail!
I (786) nvs: nvs_commit Done
I (786) common: Base MAC Address read from EFUSE BLK0
I (796) common: Using "0xa0, 0x76, 0x4e, 0x43, 0xf2, 0x48" as base MAC address
I (796) common: mac address:A0764E43F248
before btn init, heap: 273412
I (806) gpio: GPIO[6]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (816) TempSensor: Initializing Temperature sensor
I (826) TempSensor: default dac 2, clk_div 6
I (826) TempSensor: Temperature sensor started
I (836) sntp: Local current time is: Thu Jan 1 08:13:46 1970
I (836) gpio: GPIO[1]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (846) gpio: GPIO[7]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (856) pp: pp rom version: 9387209
I (866) net80211: net80211 rom version: 9387209
I (876) wifi:wifi driver task: 3fca1ac4, prio:23, stack:6656, core=0
I (876) system_api: Base MAC address is not set
I (876) system_api: read default base MAC address from EFUSE
I (886) wifi:wifi firmware version: 7679c42
I (886) wifi:wifi certification version: v7.0
I (896) wifi:config NVS flash: disabled
I (896) wifi:config nano formating: disabled
I (896) wifi:Init data frame dynamic rx buffer num: 32
I (906) wifi:Init management frame dynamic rx buffer num: 32
I (906) wifi:Init management short buffer num: 32
I (916) wifi:Init dynamic tx buffer num: 32
I (916) wifi:Init static tx FG buffer num: 2
I (926) wifi:Init static rx buffer size: 1600
I (926) wifi:Init static rx buffer num: 10
I (926) wifi:Init dynamic rx buffer num: 32
I (936) wifi_init: rx ba win: 6
I (936) wifi_init: tcpip mbox: 32
I (946) wifi_init: udp mbox: 6
I (946) wifi_init: tcp mbox: 6
I (946) wifi_init: tcp tx win: 5744
I (956) wifi_init: tcp rx win: 5744
I (956) wifi_init: tcp mss: 1440
I (966) wifi_init: WiFi IRAM OP enabled
I (966) wifi_init: WiFi RX IRAM OP enabled
I (976) wifi: ESP_WIFI_MODE_STA
I (976) phy_init: phy_version 907,3369105-dirty,Dec 3 2021,14:55:12
I (986) Winta: [ESP32C3-base] call rom_temp_to_power..
I (1026) wifi:mode : sta (a0:76:4e:43:f2:48)
I (1026) wifi:enable tsf
I (1026) wifi: station event handler begin,event_base=WIFI_EVENT, event_id=2



I (1026) device: turn_led3_on
I (1026) wifi:Set ps type: 1

I (1036) wifi:new:<1,1>, old:<1,0>, ap:<255,255>, sta:<1,1>, prof:1
I (1646) wifi:state: init -> auth (b0)
I (1666) wifi:state: auth -> assoc (0)
I (1666) wifi:state: assoc -> run (10)
I (1706) wifi:connected with wintasoft, aid = 4, channel 1, 40U, bssid = 00:5c:86:15:7b:18
I (1706) wifi:security: WPA2-PSK, phy: bgn, rssi: -38
I (1706) wifi:pm start, type: 1

I (1706) wifi:set rx beacon pti, rx_bcn_pti: 14, bcn_timeout: 14, mt_pti: 25000, mt_time: 10000
I (1716) wifi: station event handler begin,event_base=WIFI_EVENT, event_id=4

I (1726) wifi: Network connected
I (1746) wifi:BcnInt:102400, DTIM:1
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x1 (POWERON),boot:0xf (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x16b4
load:0x403ce000,len:0x930
load:0x403d0000,len:0x2d40
entry 0x403ce000
I (30) boot: ESP-IDF v4.4 2nd stage bootloader
I (30) boot: compile time 11:02:55
I (30) boot: chip revision: 3
I (32) boot_comm: chip revision: 3, min. bootloader chip revision: 2
I (39) boot.esp32c3: SPI Speed : 80MHz
I (43) boot.esp32c3: SPI Mode : DIO
I (48) boot.esp32c3: SPI Flash Size : 4MB
I (53) boot: Enabling RNG early entropy source...
I (58) boot: Partition Table:
I (62) boot: ## Label Usage Type ST Offset Length
I (69) boot: 0 nvs WiFi data 01 02 00009000 00004000
I (77) boot: 1 otadata OTA data 01 00 0000d000 00002000
I (84) boot: 2 phy_init RF data 01 01 0000f000 00001000
I (92) boot: 3 ota_0 OTA app 00 10 00010000 00190000
I (99) boot: 4 ota_1 OTA app 00 11 001a0000 00190000
I (107) boot: 5 storage Unknown data 01 82 00330000 00012000

no1chan
Posts: 1
Joined: Wed Mar 29, 2023 6:21 am

Re: 新画一块ESP32-C3板子,一运行 wifi 例程就无线重启,SHA-256 comparison failed

Postby no1chan » Wed Mar 29, 2023 6:24 am

可以嘗試這兩個改動:
1. 在sdkconfig 把wifi max tx power 降低
2. 在sdkconfig 關閉使用newlib

IvanLi
Posts: 3
Joined: Wed Apr 06, 2022 11:28 am

Re: 新画一块ESP32-C3板子,一运行 wifi 例程就无线重启,SHA-256 comparison failed

Postby IvanLi » Thu Apr 20, 2023 5:27 pm

我也遇到同样的问题,不过我感觉,好像是和供电关系,我并了个 470uF 的电容,连电脑供电就稳定。 或者换供电的电源表现也会不同。连 USB HUB 时,给额外供电也能稳定很多。

有时候重启时,手摸模块有概率能挺过WiFi连接。我感觉是供电问题,但是我也不确定。。

ESP_LiuH
Posts: 42
Joined: Fri Feb 10, 2023 7:20 am

Re: 新画一块ESP32-C3板子,一运行 wifi 例程就无线重启,SHA-256 comparison failed

Postby ESP_LiuH » Tue Apr 25, 2023 9:30 am

有降低 Wi-Fi 的 TX power 吗?

FengZhaolin
Posts: 3
Joined: Tue Jul 23, 2024 9:05 am

Re: 新画一块ESP32-C3板子,一运行 wifi 例程就无线重启,SHA-256 comparison failed

Postby FengZhaolin » Tue Jul 23, 2024 9:12 am

我遇到了一模一样的问题。可以确定的信息有:

1. 当初始化 wifi 时,CHIP_EN 会被瞬间拉低,从而导致重启。示波器能看到明显拉低。
2. 当插上wifi天线时,不会出现这个现象。(或者用金属接触SMA插座的针脚,也不会)
3. 当拆掉RF相关的电容和电阻,不会出现这个现象。
4. 基本可以排除供电的问题,因为用商用的可调电源,现象一致。

RF 天线的电容和电感值(从chip到SMA的方向)是:2.7qF, 2.7nH, 2.0pF 。显然手摸或者接入天线的时候,改变了电容值,从而解决了问题。

哪位大神可以解释下原理?

IvanLi
Posts: 3
Joined: Wed Apr 06, 2022 11:28 am

Re: 新画一块ESP32-C3板子,一运行 wifi 例程就无线重启,SHA-256 comparison failed

Postby IvanLi » Fri Jul 26, 2024 1:02 am

我觉得就是供电问题。模块供电或者芯片 VDD3P3 单纯堆电容容值就没事。我现在不用模块了,用自己画的板子加芯片没再遇到这个问题了。

Who is online

Users browsing this forum: Google [Bot] and 58 guests