完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
问题描述:
运行的程序是wifi->station程序 1.我们自己画的PCB板子,以前用过ESP32,ESP32S2在连接WiFi上均没有问题,现在在ESP32S3时,连接不上WiFi。 2.板子搭载了一个xn297无线模块,拆掉该无线模块后还是不行 3.蓝牙功能均没有问题,甚至可以用蓝牙进行OTA更新 4.WiFi打开时,明显有反应,就是连接不上 5.已经在多块PCB板测试,均是如此 以下是运行日志: ESP-ROM:esp32s3-20210327Build:Mar 27 2021rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)SPIWP:0xeemode:DIO, clock div:1load:0x3fce3820,len:0x1718load:0x403c9700,len:0x4load:0x403c9704,len:0xc08load:0x403cc700,len:0x2f08entry 0x403c990cI (27) boot: ESP-IDF v5.2-dev-921-gdc016f5987-dirty 2nd stage bootloaderI (27) boot: compile time Jul 24 2023 08:46:47I (28) boot: Multicore bootloaderI (32) boot: chip revision: v0.1I (36) boot.esp32s3: Boot SPI Speed : 80MHzI (41) boot.esp32s3: SPI Mode : DIOI (45) boot.esp32s3: SPI Flash Size : 8MBI (50) boot: Enabling RNG early entropy source...I (56) boot: Partition Table:I (59) boot: ## Label Usage Type ST Offset LengthI (66) boot: 0 nvs WiFi data 01 02 00009000 00006000I (74) boot: 1 phy_init RF data 01 01 0000f000 00001000I (81) boot: 2 factory factory app 00 00 00010000 00100000I (89) boot: End of partition tableI (93) esp_image: segment 0: paddr=00010020 vaddr=3c080020 size=20624h (132644) mapI (125) esp_image: segment 1: paddr=0003064c vaddr=3fc96f00 size=0448ch ( 17548) loadI (129) esp_image: segment 2: paddr=00034ae0 vaddr=40374000 size=0b538h ( 46392) loadI (141) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=7c168h (508264) mapI (233) esp_image: segment 4: paddr=000bc190 vaddr=4037f538 size=078e0h ( 30944) loadI (248) boot: Loaded app from partition at offset 0x10000I (248) boot: Disabling RNG early entropy source...I (260) cpu_start: Multicore appI (260) cpu_start: Pro cpu up.I (260) cpu_start: Starting app cpu, entry point is 0x403753000x40375300: call_start_cpu1 at C:/Espressif/frameworks/esp-idf/components/esp_system/port/cpu_start.c:154I (0) cpu_start: App cpu up.I (278) cpu_start: Pro cpu start user codeI (278) cpu_start: cpu freq: 160000000 HzI (278) cpu_start: Application information:I (281) cpu_start: Project name: wifi_stationI (287) cpu_start: App version: 1I (291) cpu_start: Compile time: Jul 24 2023 08:46:33I (297) cpu_start: ELF file SHA256: b1566ee4d...I (302) cpu_start: ESP-IDF: v5.2-dev-921-gdc016f5987-dirtyI (309) cpu_start: Min chip rev: v0.0I (314) cpu_start: Max chip rev: v0.99 I (319) cpu_start: Chip rev: v0.1I (324) heap_init: Initializing. RAM available for dynamic allocation:I (331) heap_init: At 3FC9ED60 len 0004A9B0 (298 KiB): DRAMI (337) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAMI (344) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAMI (350) heap_init: At 600FE010 len 00001FF0 (7 KiB): RTCRAMI (357) spi_flash: detected chip: gdI (360) spi_flash: flash io: dioI (365) sleep: Configure to isolate all GPIO pins in sleep stateI (371) sleep: Enable automatic switching of GPIO sleep configurationI (379) app_start: Starting scheduler on CPU0I (383) app_start: Starting scheduler on CPU1I (383) main_task: Started on CPU0I (393) main_task: Calling app_main()I (423) wifi station: ESP_WIFI_MODE_STAI (423) pp: pp rom version: e7ae62fI (423) net80211: net80211 rom version: e7ae62fI (433) wifi:wifi driver task: 3fca8f1c, prio:23, stack:6656, core=0I (443) wifi:wifi firmware version: b2f1f86I (443) wifi:wifi certification version: v7.0I (443) wifi:config NVS flash: enabledI (443) wifi:config nano formating: disabledI (453) wifi:Init data frame dynamic rx buffer num: 32I (453) wifi:Init management frame dynamic rx buffer num: 32I (463) wifi:Init management short buffer num: 32I (463) wifi:Init dynamic tx buffer num: 32I (473) wifi:Init static tx FG buffer num: 2I (473) wifi:Init static rx buffer size: 1600I (473) wifi:Init static rx buffer num: 10I (483) wifi:Init dynamic rx buffer num: 32I (483) wifi_init: rx ba win: 6I (493) wifi_init: tcpip mbox: 32I (493) wifi_init: udp mbox: 6I (493) wifi_init: tcp mbox: 6I (503) wifi_init: tcp tx win: 5744I (503) wifi_init: tcp rx win: 5744I (503) wifi_init: tcp mss: 1440I (513) wifi_init: WiFi IRAM OP enabledI (513) wifi_init: WiFi RX IRAM OP enabledI (523) phy_init: phy_version 601,fe52df4,May 10 2023,17:26:54I (583) wifi:mode : sta (f4:12:fa:57:64:bc)I (583) wifi:enable tsfI (583) wifi station: wifi_init_sta finished.I (2993) wifi station: retry to connect to the API (2993) wifi station: connect to the AP failI (5403) wifi station: retry to connect to the API (5403) wifi station: connect to the AP failI (7803) wifi station: retry to connect to the API (7803) wifi station: connect to the AP failI (10223) wifi station: retry to connect to the API (10223) wifi station: connect to the AP failI (10233) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1I (10233) wifi:state: init -> auth (b0)I (11233) wifi:state: auth -> init (200)I (11233) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1I (11243) wifi station: retry to connect to the API (11243) wifi station: connect to the AP failI (13643) wifi station: retry to connect to the API (13643) wifi station: connect to the AP failI (13713) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1I (13713) wifi:state: init -> auth (b0)I (14713) wifi:state: auth -> init (200)I (14713) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1I (14723) wifi station: retry to connect to the API (14723) wifi station: connect to the AP failI (17133) wifi station: retry to connect to the API (17133) wifi station: connect to the AP failI (17193) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1I (17193) wifi:state: init -> auth (b0)I (18193) wifi:state: auth -> init (200)I (18203) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1I (18203) wifi station: retry to connect to the API (18203) wifi station: connect to the AP failI (20613) wifi station: retry to connect to the API (20613) wifi station: connect to the AP failI (20683) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1I (20683) wifi:state: init -> auth (b0)I (21683) wifi:state: auth -> init (200)I (21683) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1I (21683) wifi station: connect to the AP failI (21683) wifi station: Failed to connect to SSID:123, password:12345678I (21693) main_task: Returned from app_main() |
|
相关推荐
1个回答
|
|
根据您提供的问题描述和运行日志,我们可以按照以下步骤来排查和解决问题:
1. 首先,确认您的ESP32-S3开发板的固件版本是否与官方例程兼容。您可以在ESP-IDF的GitHub仓库中查找与您的开发板型号和固件版本相匹配的例程。 2. 检查您的WiFi配置是否正确。确保SSID和密码与您要连接的WiFi网络匹配。您可以在代码中找到以下部分并进行修改: ``` const char *ssid = "您的WiFi名称"; const char *password = "您的WiFi密码"; ``` 3. 检查您的PCB板子上的天线是否连接正确。如果天线连接有问题,可能会导致WiFi信号接收不良。 4. 检查您的WiFi信道设置。ESP32-S3支持的信道范围可能与您的路由器设置不同。您可以在代码中找到以下部分并进行修改: ``` wifi_config_t wifi_config = { .sta = { .ssid = SSID, .password = PASSWORD, .bssid_set = 0, .channel = 0, // 设置为0,让ESP32自动选择信道 }, }; ``` 5. 检查您的ESP32-S3开发板的电源供应是否稳定。不稳定的电源可能会影响WiFi模块的正常工作。 6. 如果以上步骤都无法解决问题,您可以尝试升级ESP-IDF到最新版本,并重新编译和烧录程序。 7. 如果问题仍然存在,您可以考虑在ESP-IDF的GitHub仓库中提交一个issue,描述您遇到的问题和相关配置,以便开发者帮助您解决问题。 希望以上步骤能帮助您解决ESP32-S3连接不上WiFi的问题。 |
|
|
|
只有小组成员才能发言,加入小组>>
1143 浏览 1 评论
578浏览 6评论
479浏览 5评论
有没有办法在不使用混杂模式的情况下实现Wifi驱动程序接收缓冲区访问中断呢?
463浏览 5评论
464浏览 4评论
440浏览 4评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 10:00 , Processed in 0.928453 second(s), Total 79, Slave 63 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号