ESP32-S3 SIP主机连续读取数据时复位,读取单个数据时正常

nidaye
Posts: 2
Joined: Wed Jun 28, 2023 3:08 am

ESP32-S3 SIP主机连续读取数据时复位,读取单个数据时正常

Postby nidaye » Wed Jun 28, 2023 3:24 am

[2023-06-28 11:21:55.427]
RX:ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3810,len:0x164c
load:0x403c9700,len:0xbe0
load:0x403cc700,len:0x2ef8
entry 0x403c9900
[0;32mI (25) boot: ESP-IDF v5.0.1-dirty 2nd stage bootloader[0m
[0;32mI (25) boot: compile time 09:37:27[0m
[0;32mI (25) boot: chip revision: v0.1[0m
[0;32mI (27) boot.esp32s3: Boot SPI Speed : 80MHz[0m
[0;32mI (32) boot.esp32s3: SPI Mode : DIO[0m
[0;32mI (37) boot.esp32s3: SPI Flash Size : 2MB[0m
[0;32mI (41) boot: Enabling RNG early entropy source...[0m
[0;32mI (47) boot: Partition Table:[0m
[0;32mI (50) boot: ## Label Usage Type ST Offset Length[0m
[0;32mI (58) boot: 0 nvs WiFi data 01 02 00009000 00006000[0m
[0;32mI (65) boot: 1 phy_init RF data 01 01 0000f000 00001000[0m
[0;32mI (73) boot: 2 factory factory app 00 00 00010000 00100000[0m
[0;32mI (80) boot: End of partition table[0m
[0;32mI (84) esp_image: segment 0: paddr=00010020 vaddr=3c080020 size=20278h (131704) map[0m
[0;32mI (116) esp_image: segment 1: paddr=000302a0 vaddr=3fc98f00 size=04260h ( 16992) load[0m
[0;32mI (120) esp_image: segment 2: paddr=00034508 vaddr=40374000 size=0bb10h ( 47888) load[0m
[0;32mI (133) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=79d70h (499056) map[0m
[0;32mI (223) esp_image: segment 4: paddr=000b9d98 vaddr=4037fb10 size=093d0h ( 37840) load[0m
[0;32mI (240) boot: Loaded app from partition at offset 0x10000[0m
[0;32mI (240) boot: Disabling RNG early entropy source...[0m
[0;32mI (251) cpu_start: Pro cpu up.[0m
[0;32mI (251) cpu_start: Starting app cpu, entry point is 0x4037554c[0m
[0;32mI (0) cpu_start: App cpu up.[0m
[0;32mI (266) cpu_start: Pro cpu start user code[0m
[0;32mI (266) cpu_start: cpu freq: 160000000 Hz[0m
[0;32mI (266) cpu_start: Application information:[0m
[0;32mI (269) cpu_start: Project name: tcp_server[0m
[0;32mI (274) cpu_start: App version: 1[0m
[0;32mI (279) cpu_start: Compile time: Jun 27 2023 09:36:45[0m
[0;32mI (285) cpu_start: ELF file SHA256: c0cccc80da8eb1ad...[0m
[0;32mI (291) cpu_start: ESP-IDF: v5.0.1-dirty[0m
[0;32mI (296) cpu_start: Min chip rev: v0.0[0m
[0;32mI (301) cpu_start: Max chip rev: v0.99 [0m
[0;32mI (306) cpu_start: Chip rev: v0.1[0m
[0;32mI (310) heap_init: Initializing. RAM available for dynamic allocation:[0m
[0;32mI (318) heap_init: At 3FCA0FA8 len 00048768 (289 KiB): D/IRAM[0m
[0;32mI (324) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM[0m
[0;32mI (331) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM[0m
[0;32mI (337) heap_init: At 600FE010 len 00001FF0 (7 KiB): RTCRAM[0m
[0;32mI (344) spi_flash: detected chip: gd[0m
[0;32mI (348) spi_flash: flash io: dio[0m
[0;33mW (351) spi_flash: Detected size(16384k) larger than the size in the binary image header(2048k). Using the size in the binary image header.[0m
[0;32mI (365) cpu_start: Starting scheduler on PRO CPU.[0m
[0;32mI (0) cpu_start: Starting scheduler on APP CPU.[0m
[0;32mI (432) gpio: GPIO[10]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:1 [0m
[0;32mI (432) pp: pp rom version: e7ae62f[0m
[0;32mI (442) net80211: net80211 rom version: e7ae62f[0m
I (452) wifi:wifi driver task: 3fcee38c, prio:23, stack:6656, core=0
[0;32mI (452) system_api: Base MAC address is not set[0m
[0;32mI (452) system_api: read default base MAC address from EFUSE[0m
I (472) wifi:wifi firmware version: 17afb16
I (472) wifi:wifi certification version: v7.0
I (472) wifi:config NVS flash: enabled
I (472) wifi:config nano formating: disabled
I (482) wifi:Init data frame dynamic rx buffer num: 32
I (482) wifi:Init management frame dynamic rx buffer num: 32
I (492) wifi:Init management short buffer num: 32
I (492) wifi:Init dynamic tx buffer num: 32
I (502) wifi:Init static tx FG buffer num: 2
I (502) wifi:Init static rx buffer size: 1600
I (502) wifi:Init static rx buffer num: 10
I (512) wifi:Init dynamic rx buffer num: 32
[0;32mI (512) wifi_init: rx ba win: 6[0m
[0;32mI (522) wifi_init: tcpip mbox: 32[0m
[0;32mI (522) wifi_init: udp mbox: 6[0m
[0;32mI (522) wifi_init: tcp mbox: 6[0m
[0;32mI (532) wifi_init: tcp tx win: 5744[0m
[0;32mI (532) wifi_init: tcp rx win: 5744[0m
[0;32mI (542) wifi_init: tcp mss: 1440[0m
[0;32mI (542) wifi_init: WiFi IRAM OP enabled[0m
[0;32mI (542) wifi_init: WiFi RX IRAM OP enabled[0m
[0;32mI (572) phy_init: phy_version 540,a5d905b,Oct 20 2022,19:36:11[0m
I (602) wifi:mode : sta (f4:12:fa:e2:35:68)
I (602) wifi:enable tsf
[0;32mI (602) example: wifi_init_sta finished.[0m
I (612) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (1592) wifi:state: init -> auth (b0)
I (1632) wifi:state: auth -> assoc (0)
I (1662) wifi:state: assoc -> run (10)
I (1812) wifi:connected with Xiaomi_174C, aid = 7, channel 1, BW20, bssid = 3c:cd:57:a3:17:4d
I (1812) wifi:security: WPA2-PSK, phy: bgn, rssi: -51
I (1822) wifi:pm start, type: 1

I (1822) wifi:set rx beacon pti, rx_bcn_pti: 0, bcn_timeout: 0, mt_pti: 25000, mt_time: 10000
I (1832) wifi:AP's beacon interval = 102400 us, DTIM period = 1
I (2322) wifi:<ba-add>idx:0 (ifx:0, 3c:cd:57:a3:17:4d), tid:0, ssn:2, winSize:64
[0;32mI (3322) esp_netif_handlers: sta ip: 192.168.31.239, mask: 255.255.255.0, gw: 192.168.31.1[0m
[0;32mI (3322) example: got ip:192.168.31.239[0m
[0;32mI (3322) example: connected to ap SSID:Xiaomi_174C password:whyt2019[0m
[0;32mI (3332) example: Socket created[0m
[0;32mI (3332) example: Socket bound, port 9100[0m
[0;32mI (3332) example: Socket listening[0m

[2023-06-28 11:22:04.980]
RX:Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.

Core 0 register dump:
PC : 0x4037807f PS : 0x00060b30 A0 : 0x803786e9 A1 : 0x3fceba70
A2 : 0x3fce0000 A3 : 0x3fcebb00 A4 : 0x00000000 A5 : 0x00000000
A6 : 0x3fcec2c0 A7 : 0x00000000 A8 : 0x80378a46 A9 : 0x3fceba60
A10 : 0x3fce0000 A11 : 0x3fc9d3c8 A12 : 0x00060b20 A13 : 0x00060b23
A14 : 0x858a8f3f A15 : 0x0000cdcd SAR : 0x00000020 EXCCAUSE: 0x0000001c
EXCVADDR: 0x858a8fc7 LBEG : 0x40056f5c LEND : 0x40056f72 LCOUNT : 0x00000000


Backtrace: 0x4037807c:0x3fceba70 0x403786e6:0x3fcebab0 0x40378844:0x3fcebae0 0x42009561:0x3fcebb00 0x40377de6:0x3fcebb50 0x40381bbd:0x3fcebb80




ELF file SHA256: c0cccc80da8eb1ad

Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40375a09
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3810,len:0x164c
load:0x403c9700,len:0xbe0
load:0x403cc700,len:0x2ef8
entry 0x403c9900
[0;32mI (29) boot: ESP-IDF v5.0.1-dirty 2nd stage bootloader[0m
[0;32mI (29) boot: compile time 09:37:27[0m
[0;32mI (29) boot: chip revision: v0.1[0m
[0;32mI (32) boot.esp32s3: Boot SPI Speed : 80MHz[0m
[0;32mI (36) boot.esp32s3: SPI Mode : DIO[0m
[0;32mI (41) boot.esp32s3: SPI Flash Size : 2MB[0m
[0;32mI (46) boot: Enabling RNG early entropy source...[0m
[0;32mI (51) boot: Partition Table:[0m
[0;32mI (55) boot: ## Label Usage Type ST Offset Length[0m
[0;32mI (62) boot: 0 nvs WiFi data 01 02 00009000 00006000[0m
[0;32mI (70) boot: 1 phy_init RF data 01 01 0000f000 00001000[0m
[0;32mI (77) boot: 2 factory factory app 00 00 00010000 00100000[0m
[0;32mI (85) boot: End of partition table[0m
[0;32mI (89) esp_image: segment 0: paddr=00010020 vaddr=3c080020 size=20278h (131704) map[0m
[0;32mI (121) esp_image: segment 1: paddr=000302a0 vaddr=3fc98f00 size=04260h ( 16992) load[0m
[0;32mI (125) esp_image: segment 2: paddr=00034508 vaddr=40374000 size=0bb10h ( 47888) load[0m
[0;32mI (137) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=79d70h (499056) map[0m
[0;32mI (227) esp_image: segment 4: paddr=000b9d98 vaddr=4037fb10 size=093d0h ( 37840) load[0m
[0;32mI (244) boot: Loaded app from partition at offset 0x10000[0m
[0;32mI (244) boot: Disabling RNG early entropy source...[0m
[0;32mI (256) cpu_start: Pro cpu up.[0m
[0;32mI (256) cpu_start: Starting app cpu, entry point is 0x4037554c[0m
[0;32mI (0) cpu_start: App cpu up.[0m
[0;32mI (270) cpu_start: Pro cpu start user code[0m
[0;32mI (270) cpu_start: cpu freq: 160000000 Hz[0m
[0;32mI (271) cpu_start: Application information:[0m
[0;32mI (273) cpu_start: Project name: tcp_server[0m
[0;32mI (279) cpu_start: App version: 1[0m
[0;32mI (283) cpu_start: Compile time: Jun 27 2023 09:36:45[0m
[0;32mI (289) cpu_start: ELF file SHA256: c0cccc80da8eb1ad...[0m
[0;32mI (295) cpu_start: ESP-IDF: v5.0.1-dirty[0m
[0;32mI (301) cpu_start: Min chip rev: v0.0[0m
[0;32mI (305) cpu_start: Max chip rev: v0.99 [0m
[0;32mI (310) cpu_start: Chip rev: v0.1[0m
[0;32mI (315) heap_init: Initializing. RAM available for dynamic allocation:[0m
[0;32mI (322) heap_init: At 3FCA0FA8 len 00048768 (289 KiB): D/IRAM[0m
[0;32mI (328) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM[0m
[0;32mI (335) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM[0m
[0;32mI (341) heap_init: At 600FE010 len 00001FF0 (7 KiB): RTCRAM[0m
[0;32mI (348) spi_flash: detected chip: gd[0m
[0;32mI (352) spi_flash: flash io: dio[0m
[0;33mW (356) spi_flash: Detected size(16384k) larger than the size in the binary image header(2048k). Using the size in the binary image header.[0m
[0;32mI (370) cpu_start: Starting scheduler on PRO CPU.[0m
[0;32mI (0) cpu_start: Starting scheduler on APP CPU.[0m
[0;32mI (436) gpio: GPIO[10]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:1 [0m
[0;32mI (436) pp: pp rom version: e7ae62f[0m
[0;32mI (446) net80211: net80211 rom version: e7ae62f[0m
I (456) wifi:wifi driver task: 3fcee38c, prio:23, stack:6656, core=0
[0;32mI (456) system_api: Base MAC address is not set[0m
[0;32mI (456) system_api: read default base MAC address from EFUSE[0m
I (476) wifi:wifi firmware version: 17afb16
I (476) wifi:wifi certification version: v7.0
I (476) wifi:config NVS flash: enabled
I (476) wifi:config nano formating: disabled
I (486) wifi:Init data frame dynamic rx buffer num: 32
I (486) wifi:Init management frame dynamic rx buffer num: 32
I (496) wifi:Init management short buffer num: 32
I (496) wifi:Init dynamic tx buffer num: 32
I (506) wifi:Init static tx FG buffer num: 2
I (506) wifi:Init static rx buffer size: 1600
I (506) wifi:Init static rx buffer num: 10
I (516) wifi:Init dynamic rx buffer num: 32
[0;32mI (516) wifi_init: rx ba win: 6[0m
[0;32mI (526) wifi_init: tcpip mbox: 32[0m
[0;32mI (526) wifi_init: udp mbox: 6[0m
[0;32mI (526) wifi_init: tcp mbox: 6[0m
[0;32mI (536) wifi_init: tcp tx win: 5744[0m
[0;32mI (536) wifi_init: tcp rx win: 5744[0m
[0;32mI (546) wifi_init: tcp mss: 1440[0m
[0;32mI (546) wifi_init: WiFi IRAM OP enabled[0m
[0;32mI (546) wifi_init: WiFi RX IRAM OP enabled[0m
[0;32mI (576) phy_init: phy_version 540,a5d905b,Oct 20 2022,19:36:11[0m
I (606) wifi:mode : sta (f4:12:fa:e2:35:68)
I (606) wifi:enable tsf
[0;32mI (606) example: wifi_init_sta finished.[0m
I (626) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1

[2023-06-28 11:22:06.725]
RX:I (1646) wifi:state: init -> auth (b0)
I (1696) wifi:state: auth -> assoc (0)
I (1716) wifi:state: assoc -> run (10)
I (1876) wifi:connected with Xiaomi_174C, aid = 7, channel 1, BW20, bssid = 3c:cd:57:a3:17:4d
I (1876) wifi:security: WPA2-PSK, phy: bgn, rssi: -53
I (1886) wifi:pm start, type: 1

I (1886) wifi:set rx beacon pti, rx_bcn_pti: 0, bcn_timeout: 0, mt_pti: 25000, mt_time: 10000
I (1896) wifi:AP's beacon interval = 102400 us, DTIM period = 1
I (1936) wifi:<ba-add>idx:0 (ifx:0, 3c:cd:57:a3:17:4d), tid:0, ssn:6, winSize:64
[0;32mI (2886) esp_netif_handlers: sta ip: 192.168.31.239, mask: 255.255.255.0, gw: 192.168.31.1[0m
[0;32mI (2886) example: got ip:192.168.31.239[0m
[0;32mI (2886) example: connected to ap SSID:Xiaomi_174C password:whyt2019[0m
[0;32mI (2896) example: Socket created[0m
[0;32mI (2896) example: Socket bound, port 9100[0m
[0;32mI (2896) example: Socket listening[0m

ESP_Yake
Posts: 109
Joined: Mon Mar 06, 2017 12:23 pm

Re: ESP32-S3 SIP主机连续读取数据时复位,读取单个数据时正常

Postby ESP_Yake » Tue Jul 18, 2023 9:37 am

从非法内存地址 0x858a8fc7 加载数据导致的,这种一般是你有野指针存在。你可以查一下 backtrace 那一段地址对应的代码行,确定应用层哪里存在越界情况。
查看代码行可以使用 monitor看LOG自动打印,或者使用如下命令,PATH/TO/ELF 为你工程的 elf 位置,在项目 build 目录文件夹下:

Code: Select all

xtensa-esp32s3-elf-addr2line -afe PATH/TO/ELF 0x4037807c:0x3fceba70 0x403786e6:0x3fcebab0 0x40378844:0x3fcebae0 0x42009561:0x3fcebb00 0x40377de6:0x3fcebb50 0x40381bbd:0x3fcebb80

Who is online

Users browsing this forum: No registered users and 98 guests