ESP32 空中升级连接不上wifi

weiqifa0
Posts: 2
Joined: Thu Apr 18, 2019 6:36 am

ESP32 空中升级连接不上wifi

Postby weiqifa0 » Thu Apr 18, 2019 7:15 am

我按照ESP32 SDK里面的demo 测试 ota功能。代码没有修改,只配置wifi 账号密码。但是从log上看。esp32模块,连接不上wifi。

1、例程代码
system/ota/

2、log

Code: Select all

load:0x3fff0008,len:8
load:0x3fff0010,len:3468
ho 0 tail 12 room 4
load:0x40078000,len:7828
load:0x40080000,len:252
entry 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.[0m
I (221) wifi: wifi firmware version: 1f2a9e1
I (221) wifi: config NVS flash: enabled
I (221) wifi: config nano formating: disabled
I (231) wifi: Init dynamic tx buffer num: 32
I (241) wifi: wifi driver task: 3ffbdd64, prio:23, stack:3584
I (241) wifi: Init static rx buffer num: 10
I (241) wifi: Init dynamic rx buffer num: 0
I (241) wifi: Init rx ampdu len mblock:7
I (251) wifi: Init lldesc rx ampdu entry mblock:4
I (251) wifi: wifi power manager task: 0x3ffc310c prio: 21 stack: 2560
[0;32mI (261) ota: Setting WiFi configuration SSID UNIPAL...[0m
I (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[0m
I (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.

谢谢!

weiqifa0
Posts: 2
Joined: Thu Apr 18, 2019 6:36 am

Re: ESP32 空中升级连接不上wifi

Postby weiqifa0 » Thu Apr 18, 2019 1:04 pm

有偿请教问题~ :D :D :D :D

Who is online

Users browsing this forum: No registered users and 139 guests