ESP32 STATION 正接AP时候发生了PANIC然后重启了
Posted: Thu Apr 22, 2021 7:27 pm
用蓝牙发送了SSID和password给ESP32,
ESP32断开,重新用新SSID和PASSSWORD连接AP,这时候,发生了Panic, 然后重启了!导致没法给蓝牙客户端(手机APP,发送配网信息反馈结果,因为重启后蓝牙就断了)。
为什么?
IDF 版本: release/v4.3
[0;32mI (01:47:38.564) BOBO_BT: GATT_WRITE_EVT, conn_id 0, trans_id 1, handle 42[0m
[0;32mI (01:47:38.644) BOBO_BT: GATT_WRITE_EVT, conn_id 0, trans_id 2, handle 42[0m
[0;32mI (01:47:38.804) BOBO_BT: ESP_GATTS_EXEC_WRITE_EVT[0m
[0;32mI (01:47:38.806) BOBO_BT: 48 4f 4e 47 4d 49 4e 59 4f 4e 47 2d 57 4f 52 4b [0m
[0;33mW (01:47:38.813) BOBO_BT: BT Config net!
[0m
[0;33mW (01:47:38.818) BOBO_BT: SSID is:HONGMINYONG-WORK,PASSWORD is HHXX
[0m
I (1965217) wifi:flush txq
I (1965218) wifi:stop sw txq
I (1965220) wifi:lmac stop hw txq
I (1965223) wifi:Deinit lldesc rx mblock:10
[0;33mW (01:47:38.841) BOBO_NET_MODULE: bobo_net_module has stoped.
[0m
[0;33mW (01:47:38.931) BOBO_MAIN_MANAGER: start bobo_net_module.[0m
[0;33mW (01:47:38.931) BOBO_MAIN_MANAGER: bobo_net_module has started.
[0m
[0;33mW (01:47:38.933) BOBO_NET_MODULE: bobo net module has started.
[0m
[0;33mW (01:47:38.933) BOBO_MAIN_MANAGER: restart bobo_net_module to make use of new ssid.
[0m
E (1965322) wifi:I (1965333) wifi:timeout when WiFi un-init, type=4wifi driver task: 3ffd82b4, prio:23, stack:6656, core=0
I (1965371) wifi:wifi firmware version: 1865b55
I (1965371) wifi:wifi certification version: v7.0
I (1965371) wifi:config NVS flash: enabled
I (1965373) wifi:config nano formating: disabled
I (1965377) wifi:Init data frame dynamic rx buffer num: 32
I (1965382) wifi:Init management frame dynamic rx buffer num: 32
I (1965388) wifi:Init management short buffer num: 32
I (1965393) wifi:Init dynamic tx buffer num: 32
I (1965397) wifi:Init static rx buffer size: 1600
I (1965401) wifi:Init static rx buffer num: 10
I (1965405) wifi:Init dynamic rx buffer num: 32
[0;32mI (01:47:39.022) wifi_init: rx ba win: 6[0m
[0;32mI (01:47:39.025) wifi_init: tcpip mbox: 32[0m
[0;32mI (01:47:39.030) wifi_init: udp mbox: 6[0m
[0;32mI (01:47:39.035) wifi_init: tcp mbox: 6[0m
[0;32mI (01:47:39.039) wifi_init: tcp tx win: 5744[0m
[0;32mI (01:47:39.044) wifi_init: tcp rx win: 5744[0m
[0;32mI (01:47:39.049) wifi_init: tcp mss: 1440[0m
[0;32mI (01:47:39.054) wifi_init: WiFi IRAM OP enabled[0m
[0;32mI (01:47:39.059) wifi_init: WiFi RX IRAM OP enabled[0m
I (1965470) wifi:mode : sta (c4:dd:57:60:e9:00)
[0;33mW (01:47:39.083) BOBO_CONNECT: Connecting to SSID: HONGMINYONG-WORK ,Passord: HHXX ...[0m
[0;33mW (01:47:39.084) BOBO_CONNECT: Connecting to HONGMINYONG-WORK...[0m
[0;32mI (01:47:39.085) BOBO_CONNECT: Wi-Fi started, connect AP...[0m
[0;33mW (01:47:39.091) BOBO_CONNECT: Waiting for IP(s)[0m
gSpO2Pulse is: 0
gSpO2Val is: 0
Bed status is: Off bed.
No SpO2Det!
gSpO2Pulse is: 0
gSpO2Val is: 0
Bed status is: Off bed.
I (1968626) wifi<6,1>, old:<1,0>, ap:<255,255>, sta:<6,1>, prof:1
I (1970044) wifi:state: init -> auth (b0)
I (1970051) wifi:state: auth -> assoc (0)
I (1970060) wifi:state: assoc -> run (10)
I (1970072) wifi:connected with HONGMINYONG-WORK, aid = 1, channel 6, 40U, bssid = 08:10:78:1c:1d:6d
I (1970072) wifi:security: WPA2-PSK, phy: bgn, rssi: -26
I (1970075) wifi:pm start, type: 1
Guru Meditation Error: Core 0 panic'ed (InstructionFetchError). Exception was unhandled.
Core 0 register dump:
PC : 0x3ffdd460 PS : 0x00060330 A0 : 0x800e3588 A1 : 0x3ffd8020
A2 : 0x3ffdd448 A3 : 0x3ffe50ea A4 : 0x0000003c A5 : 0x3ffe5058
A6 : 0x00006d1d A7 : 0x00000000 A8 : 0x801a0c38 A9 : 0x00000046
A10 : 0x3ffdd460 A11 : 0x3ffe50ea A12 : 0x0000003c A13 : 0x3ffe5058
A14 : 0x3ffe49f8 A15 : 0xffffffff SAR : 0x00000010 EXCCAUSE: 0x00000002
EXCVADDR: 0x3ffdd460 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0xffffffff
Backtrace:0x3ffdd45d:0x3ffd8020 |<-CORRUPTED
ELF file SHA256: 0378ad4d1717246e
Rebooting...
ets Jul 29 2019 12:21:46
rst:0xc (SW_CPU_RESET),boot:0x1b (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:4
load:0x3fff0034,len:7104
ho 0 tail 12 room 4
load:0x40078000,len:13212
load:0x40080400,len:4568
entry 0x400806f4
[0;32mI (31) boot: ESP-IDF v4.2 2nd stage bootloader[0m
[0;32mI (31) boot: compile time 11:00:59[0m
[0;32mI (31) boot: chip revision: 3[0m
[0;32mI (34) boot_comm: chip revision: 3, min. bootloader chip revision: 0[0m
[0;32mI (41) boot.esp32: SPI Speed : 40MHz[0m
[0;32mI (45) boot.esp32: SPI Mode : DIO[0m
[0;32mI (50) boot.esp32: SPI Flash Size : 8MB[0m
[0;32mI (54) boot: Enabling RNG early entropy source...[0m
[0;32mI (60) boot: Partition Table:[0m
[0;32mI (63) boot: ## Label Usage Type ST Offset Length[0m
[0;32mI (71) boot: 0 nvs WiFi data 01 02 00009000 00004000[0m
[0;32mI (78) boot: 1 otadata OTA data 01 00 0000d000 00002000[0m
[0;32mI (86) boot: 2 phy_init RF data 01 01 0000f000 00001000[0m
[0;32mI (93) boot: 3 factory factory app 00 00 00010000 00200000[0m
[0;32mI (101) boot: 4 ota0 OTA app 00 10 00210000 00200000[0m
[0;32mI (108) boot: 5 bobo_data WiFi data 01 02 00410000 003f0000[0m
[0;32mI (116) boot: End of partition table[0m
[0;32mI (120) boot: Defaulting to factory image[0m
[0;32mI (125) boot_comm: chip revision: 3, min. application chip revision: 0[0m
[0;32mI (132) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x30034 (196660) map[0m
[0;32mI (216) esp_image: segment 1: paddr=0x0004005c vaddr=0x3ffbdb60 size=0x044c0 ( 17600) load[0m
[0;32mI (223) esp_image: segment 2: paddr=0x00044524 vaddr=0x40080000 size=0x00404 ( 1028) load[0m
[0;32mI (224) esp_image: segment 3: paddr=0x00044930 vaddr=0x40080404 size=0x0b6e8 ( 46824) load[0m
[0;32mI (252) esp_image: segment 4: paddr=0x00050020 vaddr=0x400d0020 size=0xd51c0 (872896) map[0m
[0;32mI (585) esp_image: segment 5: paddr=0x001251e8 vaddr=0x4008baec size=0x1355c ( 79196) load[0m
[0;32mI (636) boot: Loaded app from partition at offset 0x10000[0m
[0;32mI (636) boot: Disabling RNG early entropy source...[0m
[0;32mI (637) cpu_start: Pro cpu up.[0m
ESP32断开,重新用新SSID和PASSSWORD连接AP,这时候,发生了Panic, 然后重启了!导致没法给蓝牙客户端(手机APP,发送配网信息反馈结果,因为重启后蓝牙就断了)。
为什么?
IDF 版本: release/v4.3
[0;32mI (01:47:38.564) BOBO_BT: GATT_WRITE_EVT, conn_id 0, trans_id 1, handle 42[0m
[0;32mI (01:47:38.644) BOBO_BT: GATT_WRITE_EVT, conn_id 0, trans_id 2, handle 42[0m
[0;32mI (01:47:38.804) BOBO_BT: ESP_GATTS_EXEC_WRITE_EVT[0m
[0;32mI (01:47:38.806) BOBO_BT: 48 4f 4e 47 4d 49 4e 59 4f 4e 47 2d 57 4f 52 4b [0m
[0;33mW (01:47:38.813) BOBO_BT: BT Config net!
[0m
[0;33mW (01:47:38.818) BOBO_BT: SSID is:HONGMINYONG-WORK,PASSWORD is HHXX
[0m
I (1965217) wifi:flush txq
I (1965218) wifi:stop sw txq
I (1965220) wifi:lmac stop hw txq
I (1965223) wifi:Deinit lldesc rx mblock:10
[0;33mW (01:47:38.841) BOBO_NET_MODULE: bobo_net_module has stoped.
[0m
[0;33mW (01:47:38.931) BOBO_MAIN_MANAGER: start bobo_net_module.[0m
[0;33mW (01:47:38.931) BOBO_MAIN_MANAGER: bobo_net_module has started.
[0m
[0;33mW (01:47:38.933) BOBO_NET_MODULE: bobo net module has started.
[0m
[0;33mW (01:47:38.933) BOBO_MAIN_MANAGER: restart bobo_net_module to make use of new ssid.
[0m
E (1965322) wifi:I (1965333) wifi:timeout when WiFi un-init, type=4wifi driver task: 3ffd82b4, prio:23, stack:6656, core=0
I (1965371) wifi:wifi firmware version: 1865b55
I (1965371) wifi:wifi certification version: v7.0
I (1965371) wifi:config NVS flash: enabled
I (1965373) wifi:config nano formating: disabled
I (1965377) wifi:Init data frame dynamic rx buffer num: 32
I (1965382) wifi:Init management frame dynamic rx buffer num: 32
I (1965388) wifi:Init management short buffer num: 32
I (1965393) wifi:Init dynamic tx buffer num: 32
I (1965397) wifi:Init static rx buffer size: 1600
I (1965401) wifi:Init static rx buffer num: 10
I (1965405) wifi:Init dynamic rx buffer num: 32
[0;32mI (01:47:39.022) wifi_init: rx ba win: 6[0m
[0;32mI (01:47:39.025) wifi_init: tcpip mbox: 32[0m
[0;32mI (01:47:39.030) wifi_init: udp mbox: 6[0m
[0;32mI (01:47:39.035) wifi_init: tcp mbox: 6[0m
[0;32mI (01:47:39.039) wifi_init: tcp tx win: 5744[0m
[0;32mI (01:47:39.044) wifi_init: tcp rx win: 5744[0m
[0;32mI (01:47:39.049) wifi_init: tcp mss: 1440[0m
[0;32mI (01:47:39.054) wifi_init: WiFi IRAM OP enabled[0m
[0;32mI (01:47:39.059) wifi_init: WiFi RX IRAM OP enabled[0m
I (1965470) wifi:mode : sta (c4:dd:57:60:e9:00)
[0;33mW (01:47:39.083) BOBO_CONNECT: Connecting to SSID: HONGMINYONG-WORK ,Passord: HHXX ...[0m
[0;33mW (01:47:39.084) BOBO_CONNECT: Connecting to HONGMINYONG-WORK...[0m
[0;32mI (01:47:39.085) BOBO_CONNECT: Wi-Fi started, connect AP...[0m
[0;33mW (01:47:39.091) BOBO_CONNECT: Waiting for IP(s)[0m
gSpO2Pulse is: 0
gSpO2Val is: 0
Bed status is: Off bed.
No SpO2Det!
gSpO2Pulse is: 0
gSpO2Val is: 0
Bed status is: Off bed.
I (1968626) wifi<6,1>, old:<1,0>, ap:<255,255>, sta:<6,1>, prof:1
I (1970044) wifi:state: init -> auth (b0)
I (1970051) wifi:state: auth -> assoc (0)
I (1970060) wifi:state: assoc -> run (10)
I (1970072) wifi:connected with HONGMINYONG-WORK, aid = 1, channel 6, 40U, bssid = 08:10:78:1c:1d:6d
I (1970072) wifi:security: WPA2-PSK, phy: bgn, rssi: -26
I (1970075) wifi:pm start, type: 1
Guru Meditation Error: Core 0 panic'ed (InstructionFetchError). Exception was unhandled.
Core 0 register dump:
PC : 0x3ffdd460 PS : 0x00060330 A0 : 0x800e3588 A1 : 0x3ffd8020
A2 : 0x3ffdd448 A3 : 0x3ffe50ea A4 : 0x0000003c A5 : 0x3ffe5058
A6 : 0x00006d1d A7 : 0x00000000 A8 : 0x801a0c38 A9 : 0x00000046
A10 : 0x3ffdd460 A11 : 0x3ffe50ea A12 : 0x0000003c A13 : 0x3ffe5058
A14 : 0x3ffe49f8 A15 : 0xffffffff SAR : 0x00000010 EXCCAUSE: 0x00000002
EXCVADDR: 0x3ffdd460 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0xffffffff
Backtrace:0x3ffdd45d:0x3ffd8020 |<-CORRUPTED
ELF file SHA256: 0378ad4d1717246e
Rebooting...
ets Jul 29 2019 12:21:46
rst:0xc (SW_CPU_RESET),boot:0x1b (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:4
load:0x3fff0034,len:7104
ho 0 tail 12 room 4
load:0x40078000,len:13212
load:0x40080400,len:4568
entry 0x400806f4
[0;32mI (31) boot: ESP-IDF v4.2 2nd stage bootloader[0m
[0;32mI (31) boot: compile time 11:00:59[0m
[0;32mI (31) boot: chip revision: 3[0m
[0;32mI (34) boot_comm: chip revision: 3, min. bootloader chip revision: 0[0m
[0;32mI (41) boot.esp32: SPI Speed : 40MHz[0m
[0;32mI (45) boot.esp32: SPI Mode : DIO[0m
[0;32mI (50) boot.esp32: SPI Flash Size : 8MB[0m
[0;32mI (54) boot: Enabling RNG early entropy source...[0m
[0;32mI (60) boot: Partition Table:[0m
[0;32mI (63) boot: ## Label Usage Type ST Offset Length[0m
[0;32mI (71) boot: 0 nvs WiFi data 01 02 00009000 00004000[0m
[0;32mI (78) boot: 1 otadata OTA data 01 00 0000d000 00002000[0m
[0;32mI (86) boot: 2 phy_init RF data 01 01 0000f000 00001000[0m
[0;32mI (93) boot: 3 factory factory app 00 00 00010000 00200000[0m
[0;32mI (101) boot: 4 ota0 OTA app 00 10 00210000 00200000[0m
[0;32mI (108) boot: 5 bobo_data WiFi data 01 02 00410000 003f0000[0m
[0;32mI (116) boot: End of partition table[0m
[0;32mI (120) boot: Defaulting to factory image[0m
[0;32mI (125) boot_comm: chip revision: 3, min. application chip revision: 0[0m
[0;32mI (132) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x30034 (196660) map[0m
[0;32mI (216) esp_image: segment 1: paddr=0x0004005c vaddr=0x3ffbdb60 size=0x044c0 ( 17600) load[0m
[0;32mI (223) esp_image: segment 2: paddr=0x00044524 vaddr=0x40080000 size=0x00404 ( 1028) load[0m
[0;32mI (224) esp_image: segment 3: paddr=0x00044930 vaddr=0x40080404 size=0x0b6e8 ( 46824) load[0m
[0;32mI (252) esp_image: segment 4: paddr=0x00050020 vaddr=0x400d0020 size=0xd51c0 (872896) map[0m
[0;32mI (585) esp_image: segment 5: paddr=0x001251e8 vaddr=0x4008baec size=0x1355c ( 79196) load[0m
[0;32mI (636) boot: Loaded app from partition at offset 0x10000[0m
[0;32mI (636) boot: Disabling RNG early entropy source...[0m
[0;32mI (637) cpu_start: Pro cpu up.[0m