连接aws之后,断开WiFi再重新连接WiFi,为什么程序会重启???

fst202130609
Posts: 171
Joined: Thu Sep 23, 2021 10:03 am

连接aws之后,断开WiFi再重新连接WiFi,为什么程序会重启???

Postby fst202130609 » Mon Nov 15, 2021 7:17 am

我用的esp32c3_mini_1芯片,使用官网的连接aws例程下载程序,断开WiFi再重新连接WiFi,为啥会复位??
subpub: Subscribe callback[0m
[0;32mI (33862) subpub: test_topic/esp32 hello from ESP32 (QOS1) : 13 [0m
[0;32mI (33952) subpub: Stack remaining for task 'aws_iot_task' is 3336 bytes[0m
[0;32mI (35292) subpub: Subscribe callback[0m
[0;32mI (35292) subpub: test_topic/esp32 hello from ESP32 (QOS0) : 14 [0m
I (35492) wifi:state: run -> init (1a0)
I (35492) wifi:pm stop, total sleep time: 15388811 us / 18780247 us

W (35492) wifi:<ba-del>idx
I (35492) wifi:new:<11,0>, old:<11,0>, ap:<255,255>, sta:<11,0>, prof:1
[0;31mE (35502) aws_iot: Failed
! mbedtls_ssl_read returned -0x4c

[0m
I (35512) wifi:new:<11,0>, old:<11,0>, ap:<255,255>, sta:<11,0>, prof:1
I (35512) wifi:state: init -> auth (b0)
[0;31mE (35522) subpub: An error occurred in the main loop.[0m

abort() was called at PC 0x420063a1 on core 0
Core 0 register dump:
MEPC : 0x403856e0 RA : 0x40385e2e SP : 0x3fca5dd0 GP : 0x3fc8de00
TP : 0x3fc8ba54 T0 : 0x37363534 T1 : 0x7271706f T2 : 0x33323130
S0/FP : 0x00000004 S1 : 0x3fca5e34 A0 : 0x3fca5dfc A1 : 0x3fca5e32
A2 : 0x00000000 A3 : 0x3fca5e29 A4 : 0x00000001 A5 : 0x3fc95000
A6 : 0x7a797877 A7 : 0x76757473 S2 : 0x00000010 S3 : 0x0000000f
S4 : 0x00000000 S5 : 0x3c0a4000 S6 : 0x3c0a4000 S7 : 0x00001000
S8 : 0x00000000 S9 : 0x00000000 S10 : 0x00000000 S11 : 0x00000000
T3 : 0x6e6d6c6b T4 : 0x6a696867 T5 : 0x66656463 T6 : 0x62613938
MSTATUS : 0x00001881 MTVEC : 0x40380001 MCAUSE : 0x00000007 MTVAL : 0x00000000
MHARTID : 0x00000000

Stack memory:
3fca5dd0: 0x00000005 0x00000001 0x3fca5e30 0x4038c154 0x00000005 0x00000000 0x3fca5f08 0x3fc900e0
3fca5df0: 0x3fca5e34 0x3fc900fc 0x3fca5e30 0x726f6261 0x20292874 0x20736177 0x6c6c6163 0x61206465
3fca5e10: 0x43502074 0x34783020 0x36303032 0x20316133 0x63206e6f 0x2065726f 0x00000030 0x42000000
3fca5e30: 0x00000030 0x30303234 0x31613336 0x00008a00 0x3c0a47e0 0x3fca5f08 0xfffff000 0x420063a4
3fca5e50: 0x3c0b1c14 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x3fca5b80
3fca5e70: 0xa5a5a5a5 0xa5a5a5a5 0x00000001 0x000aa500 0x3fca6b1c 0x0000001d 0x00000000 0xa5a5a500
3fca5e90: 0x3fca6b1c 0x0000001d 0x4354514d 0x00000004 0x3c0a4354 0x000a0007 0x00000001 0x5754514d
3fca5eb0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fca5ed0: 0x00000000 0x00000000 0x3fc8da7c 0x000022b3 0x3c0a4835 0x3c0a4cde 0x3c0a51a7 0x000007d0
3fca5ef0: 0x00004e20 0x00001388 0x00000001 0x42005d74 0x00000000 0x00000000 0x00000c5c 0x000003e8
3fca5f10: 0x00000d1e 0x00000c5c 0x000003e8 0x00000c66 0x00000000 0x00000000 0x00000000 0x00000003
3fca5f30: 0xa5a50100 0xa5a5000a 0x000007d0 0x00004e20 0xa5a5000a 0xa5a5a5a5 0x00000000 0x00000200
3fca5f50: 0x00000200 0x00000000 0x10003132 0x74736574 0x706f745f 0x652f6369 0x32337073 0x65680a00
3fca5f70: 0x206f6c6c 0x6d6f7266 0x50534520 0x28203233 0x31534f51 0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xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
3fca60f0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
3fca6110: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
3fca6130: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
3fca6150: 0xa5a5a5a5 0xa5a5a5a5 0x10002f30 0x74736574 0x706f745f 0x652f6369 0x32337073 0x6c6c6568
3fca6170: 0x7266206f 0x45206d6f 0x32335053 0x4f512820 0x20293053 0x3431203a 0xa5a5a520 0xa5a5a5a5
3fca6190: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
3fca61b0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5



ELF file SHA256: 91f5e0266789ffcd

Rebooting...
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0xc (RTC_SW_CPU_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x40382da0
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x1730
load:0x403ce000,len:0x8d4
load:0x403d0000,len:0x293c
entry 0x403ce000
[0;32mI (35) boot: ESP-IDF v4.3-dirty 2nd stage bootloader[0m
[0;32mI (35) boot: compile time 11:31:56[0m
[0;32mI (35) boot: chip revision: 3[0m
[0;32mI (37) boot.esp32c3: SPI Speed : 80MHz[0m
[0;32mI (42) boot.esp32c3: SPI Mode : DIO[0m
[0;32mI (47) boot.esp32c3: SPI Flash Size : 2MB[0m
[0;32mI (51) boot: Enabling RNG early entropy source...[0m
[0;32mI (57) boot: Partition Table:[0m
[0;32mI (60) boot: ## Label Usage Type ST Offset Length[0m
[0;32mI (68) boot: 0 nvs WiFi data 01 02 00009000 00006000[0m
[0;32mI (75) boot: 1 phy_init RF data 01 01 0000f000 00001000[0m
[0;32mI (83) boot: 2 factory factory app 00 00 00010000 00100000[0m
[0;32mI (90) boot: End of partition table[0m
[0;32mI (94) esp_image: segment 0: paddr=00010020 vaddr=3c0a0020 size=1b1f8h (111096) map[0m
[0;32mI (120) esp_image: segment 1: paddr=0002b220 vaddr=3fc8d600 size=03490h ( 13456) load[0m
[0;32mI (123) esp_image: segment 2: paddr=0002e6b8 vaddr=40380000 size=01960h ( 6496) load[0m
[0;32mI (127) esp_image: segment 3: paddr=00030020 vaddr=42000020 size=9acbch (634044) map[0m
[0;32mI (233) esp_image: segment 4: paddr=000cace4 vaddr=40381960 size=0bc2ch ( 48172) load[0m
[0;32mI (242) esp_image: segment 5: paddr=000d6918 vaddr=50000000 size=00010h ( 16) load[0m
[0;32mI (246) boot: Loaded app from partition at offset 0x10000[0m
[0;32mI (247) boot: Disabling RNG early entropy source...[0m
[0;32mI (262) cpu_start: Pro cpu up.[0m
[0;32mI (275) cpu_start: Pro cpu start user code[0m
[0;32mI (275) cpu_start: cpu freq: 160000000[0m
[0;32mI (275) cpu_start: Application information:[0m
[0;32mI (277) cpu_start: Project name: subscribe_publish[0m
[0;32mI (283) cpu_start: App version: 249c573-dirty[0m
[0;32mI (289) cpu_start: Compile time: Nov 15 2021 14:00:12[0m
[0;32mI (295) cpu_start: ELF file SHA256: 91f5e0266789ffcd...[0m
[0;32mI (301) cpu_start: ESP-IDF: v4.3-dirty[0m
[0;32mI (306) heap_init: Initializing. RAM available for dynamic allocation:[0m
[0;32mI (313) heap_init: At 3FC95730 len 0002A8D0 (170 KiB): DRAM[0m
[0;32mI (319) heap_init: At 3FCC0000 len 0001F060 (124 KiB): STACK/DRAM[0m
[0;32mI (326) heap_init: At 50000010 len 00001FF0 (7 KiB): RTCRAM[0m
[0;32mI (333) spi_flash: detected chip: generic[0m
[0;32mI (337) spi_flash: flash io: dio[0m
[0;33mW (341) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.[0m
[0;32mI (355) sleep: Configure to isolate all GPIO pins in sleep state[0m
[0;32mI (361) sleep: Enable automatic switching of GPIO sleep configuration[0m
[0;32mI (368) cpu_start: Starting scheduler.[0m
[0;32mI (377) pp: pp rom version: 9387209[0m
[0;32mI (377) net80211: net80211 rom version: 9387209[0m
I (397) wifi:wifi driver task: 3fc9eaac, prio:23, stack:6656, core=0
[0;32mI (397) system_api: Base MAC address is not set[0m
[0;32mI (397) system_api: read default base MAC address from EFUSE[0m
I (407) wifi:wifi firmware version: c7d0450
I (407) wifi:wifi certification version: v7.0
I (407) wifi:config NVS flash: enabled
I (417) wifi:config nano formating: disabled
I (417) wifi:Init data frame dynamic rx buffer num: 32
I (417) wifi:Init management frame dynamic rx buffer num: 32
I (427) wifi:Init management short buffer num: 32
I (427) wifi:Init dynamic tx buffer num: 32
I (437) wifi:Init static tx FG buffer num: 2
I (437) wifi:Init static rx buffer size: 1600
I (447) wifi:Init static rx buffer num: 10
I (447) wifi:Init dynamic rx buffer num: 32
[0;32mI (447) wifi_init: rx ba win: 6[0m
[0;32mI (457) wifi_init: tcpip mbox: 32[0m
[0;32mI (457) wifi_init: udp mbox: 6[0m
[0;32mI (467) wifi_init: tcp mbox: 6[0m
[0;32mI (467) wifi_init: tcp tx win: 5744[0m
[0;32mI (467) wifi_init: tcp rx win: 5744[0m
[0;32mI (477) wifi_init: tcp mss: 1440[0m
[0;32mI (477) wifi_init: WiFi IRAM OP enabled[0m
[0;32mI (487) wifi_init: WiFi RX IRAM OP enabled[0m
[0;32mI (487) subpub: Setting WiFi configuration SSID esp32c3...[0m
[0;32mI (497) phy_init: phy_version 500,985899c,Apr 19 2021,16:05:08[0m
I (617) wifi:set rx active PTI: 0, rx ack PTI: 0, and default PTI: 0
I (617) wifi:mode : sta (7c:df:a1:5b:c0:88)
I (627) wifi:enable tsf
[0;32mI (627) subpub: AWS IoT SDK Version 3.0.1-[0m

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

Re: 连接aws之后,断开WiFi再重新连接WiFi,为什么程序会重启???

Postby ESP_LJY » Thu Nov 18, 2021 9:31 am

E (35522) subpub: An error occurred in the main loop
可以看一下这个地方是哪里打印的,是否出错后执行了 abort?

Who is online

Users browsing this forum: No registered users and 99 guests