常见原因都排查了,自己画的板子和购买的开发板都使用不了wifi功能;
终端输出:
Merry@merry-VMware-Virtual-Platform:~/esp/v8_25/esp-idf/examples/wifi/getting_started/station$ idf.py -p /dev/ttyUSB0 monitor -b 74880
Executing action: monitor
Running idf_monitor in directory /home/merry/esp/v8_25/esp-idf/examples/wifi/getting_started/station
Executing "/home/merry/.espressif/python_env/idf6.0_py3.12_env/bin/python /home/merry/esp/v8_25/esp-idf/tools/idf_monitor.py -p /dev/ttyUSB0 -b 74880 --toolchain-prefix riscv32-esp-elf- --target esp32c2 --revision 100 --decode-panic backtrace /home/merry/esp/v8_25/esp-idf/examples/wifi/getting_started/station/build/wifi_station.elf /home/merry/esp/v8_25/esp-idf/examples/wifi/getting_started/station/build/bootloader/bootloader.elf -m '/home/merry/.espressif/python_env/idf6.0_py3.12_env/bin/python' '/home/merry/esp/v8_25/esp-idf/tools/idf.py' '-p' '/dev/ttyUSB0'"...
--- esp-idf-monitor 1.7.0 on /dev/ttyUSB0 74880
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
ESP-ROM:esp32c2-eco4-20240515
Build:May 15 2024
rst:0x1 (POWERON),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd5c80,len:0x1608
load:0x403ac370,len:0xbd4
--- 0x403ac370: esp_bootloader_get_description at /home/merry/esp/v8_25/esp-idf/components/esp_bootloader_format/esp_bootloader_desc.c:40
load:0x403aeb70,len:0x2aa8
--- 0x403aeb70: esp_flash_encryption_enabled at /home/merry/esp/v8_25/esp-idf/components/bootloader_support/src/flash_encrypt.c:89
entry 0x403ac37a
--- 0x403ac37a: call_start_cpu0 at /home/merry/esp/v8_25/esp-idf/components/bootloader/subproject/main/bootloader_start.c:25
I (21) boot: ESP-IDF v6.0-dev-1833-g758939caec-dirty 2nd stage bootloader
I (21) boot: compile time Oct 11 2025 18:39:35
I (21) boot: chip revision: v2.0
I (23) boot: efuse block revision: v0.1
I (27) boot.esp32c2: MMU Page Size : 32K
I (30) boot.esp32c2: SPI Speed : 60MHz
I (34) boot.esp32c2: SPI Mode : DIO
I (38) boot.esp32c2: SPI Flash Size : 2MB
I (42) boot: Enabling RNG early entropy source...
I (46) boot: Partition Table:
I (49) boot: ## Label Usage Type ST Offset Length
I (55) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (62) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (68) boot: 2 factory factory app 00 00 00010000 00100000
I (75) boot: End of partition table
I (78) esp_image: segment 0: paddr=00010020 vaddr=3c078020 size=16ce4h ( 93412) map
I (106) esp_image: segment 1: paddr=00026d0c vaddr=3fcae110 size=0130ch ( 4876) load
I (108) esp_image: segment 2: paddr=00028020 vaddr=42000020 size=7200ch (466956) map
I (215) esp_image: segment 3: paddr=0009a034 vaddr=3fcaf41c size=01740h ( 5952) load
I (217) esp_image: segment 4: paddr=0009b77c vaddr=40380000 size=0e108h ( 57608) load
I (237) boot: Loaded app from partition at offset 0x10000
I (238) boot: Disabling RNG early entropy source...
I (248) cpu_start: Unicore app
I (256) cpu_start: GPIO 19 and 20 are used as console UART I/O pins
I (256) cpu_start: Pro cpu start user code
I (256) cpu_start: cpu freq: 120000000 Hz
I (258) app_init: Application information:
I (262) app_init: Project name: wifi_station
I (266) app_init: App version: v6.0-dev-1833-g758939caec-dirty
I (272) app_init: Compile time: Oct 11 2025 18:43:37
I (277) app_init: ELF file SHA256: 0e8e4eb2e...
I (282) app_init: ESP-IDF: v6.0-dev-1833-g758939caec-dirty
I (288) efuse_init: Min chip rev: v1.0
I (291) efuse_init: Max chip rev: v2.99
I (295) efuse_init: Chip rev: v2.0
I (299) heap_init: Initializing. RAM available for dynamic allocation:
I (306) heap_init: At 3FCB4B00 len 00028070 (160 KiB): RAM
I (311) heap_init: At 3FCDCB70 len 00002820 (10 KiB): RAM
I (317) spi_flash: detected chip: gd
I (319) spi_flash: flash io: dio
W (322) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (335) sleep_gpio: Configure to isolate all GPIO pins in sleep state
I (341) sleep_gpio: Enable automatic switching of GPIO sleep configuration
I (348) main_task: Started on CPU0
I (348) main_task: Calling app_main()
I (358) wifi station: ESP_WIFI_MODE_STA
I (358) pp: pp rom version: 41ea8671f
I (368) net80211: net80211 rom version: 41ea8671f
I (378) wifi:wifi driver task: 3fcbae54, prio:23, stack:6144, core=0
I (378) wifi:wifi firmware version: 14da9b7
I (378) wifi:wifi certification version: v7.0
I (378) wifi:config NVS flash: enabled
I (378) wifi:config nano formatting: enabled
I (388) wifi:Init data frame dynamic rx buffer num: 32
I (388) wifi:Init static rx mgmt buffer num: 5
I (398) wifi:Init management short buffer num: 32
I (398) wifi:Init dynamic tx buffer num: 32
I (398) wifi:Init static tx FG buffer num: 2
I (408) wifi:Init static rx buffer size: 1600
I (408) wifi:Init static rx buffer num: 10
I (418) wifi:Init dynamic rx buffer num: 32
I (418) wifi_init: rx ba win: 6
I (418) wifi_init: accept mbox: 6
I (428) wifi_init: tcpip mbox: 32
I (428) wifi_init: udp mbox: 6
I (428) wifi_init: tcp mbox: 6
I (428) wifi_init: tcp tx win: 5760
I (438) wifi_init: tcp rx win: 5760
I (438) wifi_init: tcp mss: 1440
I (438) wifi_init: WiFi IRAM OP enabled
I (448) wifi_init: WiFi RX IRAM OP enabled
I (448) phy_init: phy_version 370,142773b,Apr 11 2025,18:51:08
I (488) wifi:mode : sta (68:25:dd:bb:19:4c)
I (488) wifi:enable tsf
I (488) wifi station: wifi_init_sta finished.
I (2898) wifi station: retry to connect to the AP
I (2898) wifi station: connect to the AP fail
I (5308) wifi station: retry to connect to the AP
I (5308) wifi station: connect to the AP fail
I (7718) wifi station: retry to connect to the AP
I (7718) wifi station: connect to the AP fail
I (10128) wifi station: retry to connect to the AP
I (10128) wifi station: connect to the AP fail
I (12538) wifi station: retry to connect to the AP
I (12538) wifi station: connect to the AP fail
I (14948) wifi station: connect to the AP fail
I (14948) wifi station: Failed to connect to SSID:hahaheic, password:wzlhhhc1
I (14948) main_task: Returned from app_main()
esp32c2,使用官方wifi例程无法连接到热点,使用esp作为wifi站点,手机也无法查看到esp的wifi
esp32c2,使用官方wifi例程无法连接到热点,使用esp作为wifi站点,手机也无法查看到esp的wifi
- Attachments
-
- esp32c2使用官方例程无法连接wifi.doc
- (1.19 MiB) Downloaded 24 times
Who is online
Users browsing this forum: No registered users and 3 guests