完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我按照ESP32 SDK里面的demo 测试 ota功能。代码没有修改,只配置wifi 账号密码。但是从log上看。esp32模块,连接不上wifi。
1、例程代码 system/ota/ 2、logCode: Select all load:0x3fff0008,len:8load:0x3fff0010,len:3468ho 0 tail 12 room 4load:0x40078000,len:7828load:0x40080000,len:252entry 0x40080034[0;32mI (45) boot: ESP-IDF v2.0-rc1-402-g240ff61-dirty 2nd stage bootloader[0m[0;32mI (45) boot: compile time 14:06:28[0m[0;32mI (51) boot: Enabling RNG early entropy source...[0m[0;32mI (67) boot: SPI Speed : 40MHz[0m[0;32mI (80) boot: SPI Mode : DIO[0m[0;32mI (92) boot: SPI Flash Size : 4MB[0m[0;32mI (105) boot: Partition Table:[0m[0;32mI (116) boot: ## Label Usage Type ST Offset Length[0m[0;32mI (139) boot: 0 nvs WiFi data 01 02 00009000 00004000[0m[0;32mI (162) boot: 1 otadata OTA data 01 00 0000d000 00002000[0m[0;32mI (185) boot: 2 phy_init RF data 01 01 0000f000 00001000[0m[0;32mI (208) boot: 3 factory factory app 00 00 00010000 00100000[0m[0;32mI (232) boot: 4 ota_0 OTA app 00 10 00110000 00100000[0m[0;32mI (255) boot: 5 ota_1 OTA app 00 11 00210000 00100000[0m[0;32mI (278) boot: End of partition table[0m[0;32mI (292) boot: Disabling RNG early entropy source...[0m[0;32mI (308) boot: Loading app partition at offset 00010000[0m[0;32mI (1056) boot: segment 0: paddr=0x00010018 vaddr=0x00000000 size=0x0ffe8 ( 65512) [0m[0;32mI (1056) boot: segment 1: paddr=0x00020008 vaddr=0x3f400010 size=0x09d4c ( 40268) map[0m[0;32mI (1073) boot: segment 2: paddr=0x00029d5c vaddr=0x3ffb0000 size=0x02498 ( 9368) load[0m[0;32mI (1103) boot: segment 3: paddr=0x0002c1fc vaddr=0x40080000 size=0x00400 ( 1024) load[0m[0;32mI (1127) boot: segment 4: paddr=0x0002c604 vaddr=0x40080400 size=0x1a848 (108616) load[0m[0;32mI (1204) boot: segment 5: paddr=0x00046e54 vaddr=0x400c0000 size=0x00000 ( 0) load[0m[0;32mI (1205) boot: segment 6: paddr=0x00046e5c vaddr=0x00000000 size=0x091ac ( 37292) [0m[0;32mI (1222) boot: segment 7: paddr=0x00050010 vaddr=0x400d0018 size=0x3f6a4 (259748) map[0m[0;32mI (1248) cpu_start: Pro cpu up.[0m[0;32mI (1259) cpu_start: Starting app cpu, entry point is 0x40080bb0[0m[0;32mI (0) cpu_start: App cpu up.[0m[0;32mI (1292) heap_alloc_caps: Initializing. RAM available for dynamic allocation:[0m[0;32mI (1315) heap_alloc_caps: At 3FFAE2A0 len 00001D60 (7 KiB): DRAM[0m[0;32mI (1335) heap_alloc_caps: At 3FFB7F78 len 00028088 (160 KiB): DRAM[0m[0;32mI (1356) heap_alloc_caps: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM[0m[0;32mI (1378) heap_alloc_caps: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM[0m[0;32mI (1399) heap_alloc_caps: At 4009AC48 len 000053B8 (20 KiB): IRAM[0m[0;32mI (1420) cpu_start: Pro cpu start user code[0m[0;32mI (1482) cpu_start: Starting scheduler on PRO CPU.[0m[0;32mI (211) cpu_start: Starting scheduler on APP CPU.[0mI (221) wifi: wifi firmware version: 1f2a9e1I (221) wifi: config NVS flash: enabledI (221) wifi: config nano formating: disabledI (231) wifi: Init dynamic tx buffer num: 32I (241) wifi: wifi driver task: 3ffbdd64, prio:23, stack:3584I (241) wifi: Init static rx buffer num: 10I (241) wifi: Init dynamic rx buffer num: 0I (241) wifi: Init rx ampdu len mblock:7I (251) wifi: Init lldesc rx ampdu entry mblock:4I (251) wifi: wifi power manager task: 0x3ffc310c prio: 21 stack: 2560[0;32mI (261) ota: Setting WiFi configuration SSID UNIPAL...[0mI (261) wifi: wifi timer task: 3ffc418c, prio:22, stack:3584[0;32mI (291) phy: phy_version: 350, Mar 22 2017, 15:02:06, 0, 0[0mI (291) wifi: mode : sta (cc:50:e3:8d:d2:cc)[0;32mI (291) ota: Starting OTA example...[0m[0;32mI (291) ota: Running partition type 0 subtype 0 (offset 0x00010000)[0m 3、代码位置Code: Select all assert(configured == running); /* fresh from reset, should be running from configured boot partition */ ESP_LOGI(TAG, "Running partition type %d subtype %d (offset 0x%08x)", configured->type, configured->subtype, configured->address); /* Wait for the callback to set the CONNECTED_BIT in the event group. */ xEventGroupWaitBits(wifi_event_group, CONNECTED_BIT, false, true, portMAX_DELAY); ESP_LOGI(TAG, "Connect to Wifi ! Start to Connect to Server...."); 从代码上看,下面的xEventGroupWaitBits这个函数没有响应,就是没有找到wifi. 谢谢! |
|
相关推荐
1个回答
|
|
以下是一些建议和可能的原因:
1. **WiFi信号问题**:请确保您的ESP32模块处于WiFi信号覆盖范围内,并且信号强度足够。 2. **WiFi密码错误**:请检查您输入的WiFi密码是否正确,确保没有拼写错误或遗漏。 3. **WiFi配置问题**:请确保您的ESP32模块的WiFi配置正确,包括SSID和密码。您可以在代码中检查这些配置。 4. **固件问题**:您提到使用的是ESP32 SDK的demo进行测试,但代码没有修改。请确保您使用的固件版本与您的硬件兼容。如果可能,请尝试升级到最新版本的ESP-IDF。 5. **日志分析**:从您提供的日志信息来看,ESP32模块已经成功启动并加载了相应的固件。但是,日志中没有显示WiFi连接的状态。您可以在代码中添加一些调试信息,以便更好地了解WiFi连接过程中的问题。 6. **电源问题**:请确保您的ESP32模块电源稳定,因为不稳定的电源可能会影响模块的正常工作。 7. **硬件问题**:如果以上建议都无法解决问题,可能是ESP32模块本身存在硬件问题。您可以尝试更换一个模块进行测试。 8. **软件问题**:如果您使用的ESP-IDF版本较旧,可能存在一些已知的bug。请尝试升级到最新版本的ESP-IDF,并查看是否有相关的修复。 |
|
|
|
只有小组成员才能发言,加入小组>>
1108 浏览 1 评论
574浏览 6评论
477浏览 5评论
有没有办法在不使用混杂模式的情况下实现Wifi驱动程序接收缓冲区访问中断呢?
460浏览 5评论
461浏览 4评论
435浏览 4评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-19 00:45 , Processed in 0.582222 second(s), Total 51, Slave 42 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号