espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.87k stars 7.32k forks source link

Does ESP32-D0WD-V3 support WPS function? (IDFGH-13986) #14812

Closed eiSouthBoy closed 2 weeks ago

eiSouthBoy commented 4 weeks ago

Answers checklist.

General issue report

Hi I am testing the esp-idf/examples/wifi/wps project on ESP32-D0WD-V3 SOC. I can compile and burn it normally using idf.py. But when I monitor the log output, I don't see the log print I (814) example_wps: start wps..., so I suspect that ESP32-D0WD-V3 does not support WPS function.

logs:

--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
I (343) esp_image: segment 3: paddr=000b6fd8 vaddr=3ffb0c20 size=02ff4h ( 12276) load
I (348) esp_image: segment 4: paddr=000b9fd4 vaddr=40080000 size=16830h ( 92208) load
I (396) boot: Loaded app from partition at offset 0x10000
I (397) boot: Disabling RNG early entropy source...
I (408) cpu_start: Multicore app
I (417) cpu_start: Pro cpu start user code
I (417) cpu_start: cpu freq: 160000000 Hz
I (417) cpu_start: Application information:
I (420) cpu_start: Project name:     wps_example
I (425) cpu_start: App version:      1
I (430) cpu_start: Compile time:     Nov  1 2024 13:57:18
I (436) cpu_start: ELF file SHA256:  b43695d5b...
I (441) cpu_start: ESP-IDF:          v5.2.2
I (446) cpu_start: Min chip rev:     v0.0
I (451) cpu_start: Max chip rev:     v3.99 
I (456) cpu_start: Chip rev:         v3.1
I (461) heap_init: Initializing. RAM available for dynamic allocation:
I (468) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (474) heap_init: At 3FFB7F30 len 000280D0 (160 KiB): DRAM
I (480) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (486) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (493) heap_init: At 40096830 len 000097D0 (37 KiB): IRAM
I (500) spi_flash: detected chip: gd
I (503) spi_flash: flash io: dio
W (507) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (521) main_task: Started on CPU0
I (531) main_task: Calling app_main()
I (561) wifi:wifi driver task: 3ffbfef8, prio:23, stack:6656, core=0
I (561) wifi:wifi firmware version: 3e0076f
I (561) wifi:wifi certification version: v7.0
I (561) wifi:config NVS flash: enabled
I (561) wifi:config nano formating: disabled
I (571) wifi:Init data frame dynamic rx buffer num: 32
I (571) wifi:Init static rx mgmt buffer num: 5
I (581) wifi:Init management short buffer num: 32
I (581) wifi:Init dynamic tx buffer num: 32
I (581) wifi:Init static rx buffer size: 1600
I (591) wifi:Init static rx buffer num: 10
I (591) wifi:Init dynamic rx buffer num: 32
I (601) wifi_init: rx ba win: 6
I (601) wifi_init: tcpip mbox: 32
I (601) wifi_init: udp mbox: 6
I (611) wifi_init: tcp mbox: 6
I (611) wifi_init: tcp tx win: 5760
I (611) wifi_init: tcp rx win: 5760
I (621) wifi_init: tcp mss: 1440
I (621) wifi_init: WiFi IRAM OP enabled
I (631) wifi_init: WiFi RX IRAM OP enabled
I (631) phy_init: phy_version 4791,2c4672b,Dec 20 2023,16:06:06
W (641) phy_init: failed to load RF calibration data (0xffffffff), falling back to full calibration
ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:7172
load:0x40078000,len:15540
load:0x40080400,len:4
0x40080400: _init at ??:?

ho 8 tail 4 room 4
load:0x40080404,len:3904
entry 0x40080640
I (31) boot: ESP-IDF v5.2.2 2nd stage bootloader
I (31) boot: compile time Nov  1 2024 13:57:26
I (31) boot: Multicore bootloader
I (35) boot: chip revision: v3.1
I (39) boot.esp32: SPI Speed      : 40MHz
I (44) boot.esp32: SPI Mode       : DIO
I (48) boot.esp32: SPI Flash Size : 2MB
I (53) boot: Enabling RNG early entropy source...
I (58) boot: Partition Table:
I (62) boot: ## Label            Usage          Type ST Offset   Length
I (69) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (77) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (84) boot:  2 factory          factory app      00 00 00010000 00100000
I (92) boot: End of partition table
I (96) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=1f3d0h (127952) map
I (148) esp_image: segment 1: paddr=0002f3f8 vaddr=3ffb0000 size=00c20h (  3104) load
I (149) esp_image: segment 2: paddr=00030020 vaddr=400d0020 size=86fb0h (552880) map
I (343) esp_image: segment 3: paddr=000b6fd8 vaddr=3ffb0c20 size=02ff4h ( 12276) load
I (348) esp_image: segment 4: paddr=000b9fd4 vaddr=40080000 size=16830h ( 92208) load
I (396) boot: Loaded app from partition at offset 0x10000
I (397) boot: Disabling RNG early entropy source...
I (408) cpu_start: Multicore app
I (417) cpu_start: Pro cpu start user code
I (417) cpu_start: cpu freq: 160000000 Hz
I (417) cpu_start: Application information:
I (420) cpu_start: Project name:     wps_example
I (425) cpu_start: App version:      1
I (430) cpu_start: Compile time:     Nov  1 2024 13:57:18
I (436) cpu_start: ELF file SHA256:  b43695d5b...
I (441) cpu_start: ESP-IDF:          v5.2.2
I (446) cpu_start: Min chip rev:     v0.0
I (451) cpu_start: Max chip rev:     v3.99 
I (455) cpu_start: Chip rev:         v3.1
I (461) heap_init: Initializing. RAM available for dynamic allocation:
I (468) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (473) heap_init: At 3FFB7F30 len 000280D0 (160 KiB): DRAM
I (480) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (486) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (493) heap_init: At 40096830 len 000097D0 (37 KiB): IRAM
I (500) spi_flash: detected chip: gd
I (503) spi_flash: flash io: dio
W (507) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (521) main_task: Started on CPU0
I (531) main_task: Calling app_main()
I (561) wifi:wifi driver task: 3ffbfef8, prio:23, stack:6656, core=0
I (561) wifi:wifi firmware version: 3e0076f
I (561) wifi:wifi certification version: v7.0
I (561) wifi:config NVS flash: enabled
I (561) wifi:config nano formating: disabled
I (571) wifi:Init data frame dynamic rx buffer num: 32
I (571) wifi:Init static rx mgmt buffer num: 5
I (581) wifi:Init management short buffer num: 32
I (581) wifi:Init dynamic tx buffer num: 32
I (581) wifi:Init static rx buffer size: 1600
I (591) wifi:Init static rx buffer num: 10
I (591) wifi:Init dynamic rx buffer num: 32
I (601) wifi_init: rx ba win: 6
I (601) wifi_init: tcpip mbox: 32
I (601) wifi_init: udp mbox: 6
I (611) wifi_init: tcp mbox: 6
I (611) wifi_init: tcp tx win: 5760
I (611) wifi_init: tcp rx win: 5760

ESP-IDF: v5.2.2 SOC: ESP32-D0WD-V3 (revision v3.1)

Looking forward to your reply.

eiSouthBoy commented 4 weeks ago

and i got a error: failed to load RF calibration data (0xffffffff), falling back to full calibration

kapilkedawat commented 3 weeks ago

Hi @eiSouthBoy, is the device rebooting in loop? could you erase the flash and then flash the example once?

eiSouthBoy commented 2 weeks ago

The problem has been solved (reference link: https://esp32.com/viewtopic.php?t=4097). Because the development board is connected via a USB-TTL module, but the power supply current is only about 150mA, it cannot drive WiFi, so it keeps reporting errors and restarting. Later, I input 500mA of current and everything is normal.