[已解决,升级IDF版本5.0]请教一下,esp32s3调用esp_restart后wifi连接问题

xucd2021
Posts: 5
Joined: Sat Mar 20, 2021 4:20 am

[已解决,升级IDF版本5.0]请教一下,esp32s3调用esp_restart后wifi连接问题

Postby xucd2021 » Tue Nov 01, 2022 6:16 am

windows,idf4.4版本

~/esp32/SDK/esp-idf$ idf.py --version
ESP-IDF v4.4-dirty

调试OTA的时候发现调用restart,wifi会连不上,然后去掉OTA功能,直接在程序跑起来10秒后restart,也有同样的问题。直接按板子上的复位按键是没这个问题的。调用restart才有这个问题。然后会出现很多行 pll_cap_ext 10 这个日志
打印的log如下:

Code: Select all

ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0xb (SPI_FAST_FLASH_BOOT)
Saved PC:0x403755d4
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd0268,len:0x17e8
load:0x403b6000,len:0xb34
load:0x403ba000,len:0x2fa8
entry 0x403b6230
W (24) boot.esp32s3: eFuse virtual mode is enabled. If Secure boot or Flash encryption is enabled then it does not provide any security. FOR TESTING ONLY!
W (31) efuse: Loading virtual efuse blocks from real efuses
I (50) boot: ESP-IDF v4.4-dirty 2nd stage bootloader
I (50) boot: compile time 14:44:32
I (50) boot: chip revision: 0
I (52) boot.esp32s3: Boot SPI Speed : 80MHz
I (57) boot.esp32s3: SPI Mode       : DIO
I (61) boot.esp32s3: SPI Flash Size : 4MB
I (66) boot: Enabling RNG early entropy source...
I (72) boot: Partition Table:
I (75) boot: ## Label            Usage          Type ST Offset   Length
I (82) boot:  0 nvs              WiFi data        01 02 0000d000 00008000
I (90) boot:  1 fctry            WiFi data        01 02 00015000 00004000
I (97) boot:  2 log_status       WiFi data        01 02 00019000 00004000
I (105) boot:  3 otadata          OTA data         01 00 0001d000 00002000
I (112) boot:  4 phy_init         RF data          01 01 0001f000 00001000
I (120) boot:  5 ota_0            OTA app          00 10 00020000 001d0000
I (127) boot:  6 ota_1            OTA app          00 11 001f0000 001d0000
I (135) boot:  7 coredump         Unknown data     01 03 003c0000 00010000
I (143) boot:  8 log_info         Unknown data     01 fe 003d0000 00010000
I (150) boot:  9 reserved         Unknown data     01 ff 003e0000 00020000
I (158) boot: End of partition table
I (162) esp_image: segment 0: paddr=00020020 vaddr=3c0c0020 size=24fd0h (151504) map
I (198) esp_image: segment 1: paddr=00044ff8 vaddr=3fc956b0 size=048d4h ( 18644) load
I (202) esp_image: segment 2: paddr=000498d4 vaddr=40374000 size=06744h ( 26436) load
I (209) esp_image: segment 3: paddr=00050020 vaddr=42000020 size=b0038h (720952) map
I (341) esp_image: segment 4: paddr=00100060 vaddr=4037a744 size=0af68h ( 44904) load
I (351) esp_image: segment 5: paddr=0010afd0 vaddr=50000000 size=00010h (    16) load
I (359) boot: Loaded app from partition at offset 0x20000
I (359) boot: Disabling RNG early entropy source...
I (371) cpu_start: Pro cpu up.
I (372) cpu_start: Single core mode
I (381) cpu_start: Pro cpu start user code
I (381) cpu_start: cpu freq: 240000000
I (381) cpu_start: Application information:
I (383) cpu_start: Project name:     topapp
I (388) cpu_start: App version:      v1.0.0-139-g0f08961-dirty
I (395) cpu_start: Compile time:     Oct 28 2022 15:38:30
I (401) cpu_start: ELF file SHA256:  b4d5427d9a72369e...
I (407) cpu_start: ESP-IDF:          v4.4-dirty
I (412) heap_init: Initializing. RAM available for dynamic allocation:
I (419) heap_init: At 3FCA0990 len 0003F670 (253 KiB): D/IRAM
I (426) heap_init: At 3FCE0000 len 0000EE34 (59 KiB): STACK/DRAM
I (432) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (439) heap_init: At 600FE000 len 00002000 (8 KiB): RTCRAM
I (445) spi_flash: detected chip: gd
I (449) spi_flash: flash io: dio
W (453) spi_flash: Detected size(16384k) larger than the size in the binary image header(4096k). Using the size in the binary image header.
W (466) cpu_start: eFuse virtual mode is enabled. If Secure boot or Flash encryption is enabled then it does not provide any security. FOR TESTING ONLY!
W (481) efuse: Loading virtual efuse blocks from real efuses
I (487) sleep: Configure to isolate all GPIO pins in sleep state
I (494) sleep: Enable automatic switching of GPIO sleep configuration
I (501) coexist: coexist rom version e7ae62f
I (506) cpu_start: Starting scheduler on PRO CPU.
E (521) main: TOPAPP START >>>>>>>>>>>>
I (521) pp: pp rom version: e7ae62f
I (524) net80211: net80211 rom version: e7ae62f
I (531) wifi:wifi driver task: 3fce6394, prio:23, stack:6656, core=0
I (536) system_api: Base MAC address is not set
I (541) system_api: read default base MAC address from EFUSE
I (550) wifi:wifi firmware version: 7679c42
I (551) wifi:wifi certification version: v7.0
I (555) wifi:config NVS flash: enabled
I (558) wifi:config nano formating: disabled
I (562) wifi:Init data frame dynamic rx buffer num: 32
I (567) wifi:Init management frame dynamic rx buffer num: 32
I (573) wifi:Init management short buffer num: 32
I (577) wifi:Init dynamic tx buffer num: 32
I (581) wifi:Init static tx FG buffer num: 2
I (585) wifi:Init static rx buffer size: 1600
I (589) wifi:Init static rx buffer num: 10
I (593) wifi:Init dynamic rx buffer num: 32
I (597) wifi_init: rx ba win: 6
I (601) wifi_init: tcpip mbox: 32
I (605) wifi_init: udp mbox: 6
I (608) wifi_init: tcp mbox: 6
I (612) wifi_init: tcp tx win: 5744
I (616) wifi_init: tcp rx win: 5744
I (620) wifi_init: tcp mss: 1460
I (624) wifi_init: WiFi IRAM OP enabled
I (629) wifi_init: WiFi RX IRAM OP enabled
I (634) phy_init: phy_version 302,3ddfab3,Dec  3 2021,14:39:12
pll_cap_ext 10
pll_cap_ext 10
pll_cap_ext 10
pll_cap_ext 10
pll_cap_ext 10
pll_cap_ext 10
//(上面这行日志重复了好多次才停下)

请问有遇到同样问题的吗?不知道这个问题出在哪里。
Last edited by xucd2021 on Fri Nov 04, 2022 8:25 am, edited 4 times in total.
:D :) ;) hello world

xucd2021
Posts: 5
Joined: Sat Mar 20, 2021 4:20 am

Re: 请教一下,esp32s3调用esp_restart后wifi连接问题

Postby xucd2021 » Tue Nov 01, 2022 8:51 am

发现用example里面的wifi ,station, 联网后调用 esp_restart ,重启后也有这个问题
:D :) ;) hello world

watcher
Posts: 8
Joined: Thu Aug 25, 2022 8:38 am

Re: 请教一下,esp32s3调用esp_restart后wifi连接问题

Postby watcher » Fri Nov 04, 2022 6:19 am

xucd2021 wrote:
Tue Nov 01, 2022 8:51 am
发现用example里面的wifi ,station, 联网后调用 esp_restart ,重启后也有这个问题
idf版本升级到v4.4.2吧

Who is online

Users browsing this forum: No registered users and 154 guests