Open Bajec opened 5 hours ago
Hi, currently on main branch none of the wifi examples work with esp32_devkitc_wroom/esp32/procpu
ERRORS running example from zephyr/test/boards/espressif/wifi
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:0x3ffb0000,len:13492 load:0x40080000,len:77072 1150 mmu set 00010000, pos 00010000 entry 0x400897c4 I (53) boot: ESP Simple boot I (53) boot: compile time Oct 5 2024 17:36:46 W (53) boot: Unicore bootloader I (53) spi_flash: detected chip: generic I (56) spi_flash: flash io: dio I (59) boot: chip revision: v3.0 I (62) boot.esp32: SPI Speed : 40MHz I (66) boot.esp32: SPI Mode : DIO I (69) boot.esp32: SPI Flash Size : 4MB I (73) boot: Enabling RNG early entropy source... I (77) boot: DRAM: lma 0x00001020 vma 0x3ffb0000 len 0x34b4 (13492) I (83) boot: IRAM: lma 0x000044dc vma 0x40080000 len 0x12d10 (77072) I (90) boot: padd: lma 0x000171f8 vma 0x00000000 len 0x8e00 (36352) I (96) boot: IMAP: lma 0x00020000 vma 0x400d0000 len 0x48220 (295456) 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:0x3ffb0000,len:13492 load:0x40080000,len:77072 1150 mmu set 00010000, pos 00010000 entry 0x400897c4 I (53) boot: ESP Simple boot I (53) boot: compile time Oct 5 2024 17:36:46 W (53) boot: Unicore bootloader I (53) spi_flash: detected chip: generic I (56) spi_flash: flash io: dio I (59) boot: chip revision: v3.0 I (62) boot.esp32: SPI Speed : 40MHz I (66) boot.esp32: SPI Mode : DIO I (69) boot.esp32: SPI Flash Size : 4MB I (73) boot: Enabling RNG early entropy source... I (77) boot: DRAM: lma 0x00001020 vma 0x3ffb0000 len 0x34b4 (13492) I (83) boot: IRAM: lma 0x000044dc vma 0x40080000 len 0x12d10 (77072) I (90) boot: padd: lma 0x000171f8 vma 0x00000000 len 0x8e00 (36352) I (96) boot: IMAP: lma 0x00020000 vma 0x400d0000 len 0x48220 (295456) I (102) boot: padd: lma 0x00068228 vma 0x00000000 len 0x7dd0 (32208) I (108) boot: DMAP: lma 0x00070000 vma 0x3f400000 len 0xc478 (50296) I (114) boot: Image with 6 segments I (118) boot: DROM segment: paddr=00070000h, vaddr=3f400000h, size=0C478h ( 50296) map I (125) boot: IROM segment: paddr=00020000h, vaddr=400d0000h, size=48220h (295456) map I (166) heap: ESP runtime heap init at 0x3ffbfe78 size 128 kB. E: Failed to init supplicant (0x101) E: Unable to initialize the wifi *** Booting Zephyr OS build v3.7.0-3935-g9403b08512eb *** Running TESTSUITE wifi =================================================================== START - test_wifi_0_scan E: Failed to set Wi-Fi mode (12289) I: Scan request failed with error: -22 Assertion failed at WEST_TOPDIR/zephyr/tests/boards/espressif/wifi/src/main.c:207: wifi_test_wifi_0_scan: (ret not equal to 0) Scan request failed FAIL - test_wifi_0_scan in 0.021 seconds =================================================================== START - test_wifi_1_connect E: Failed to get Wi-Fi mode (12289) I: Connection request failed with error: -11 Assertion failed at WEST_TOPDIR/zephyr/tests/boards/espressif/wifi/src/main.c:225: wifi_test_wifi_1_connect: (ret not equal to 0) Connect request failed FAIL - test_wifi_1_connect in 0.022 seconds =================================================================== START - test_wifi_2_icmp Assertion failed at WEST_TOPDIR/zephyr/tests/boards/espressif/wifi/src/main.c:258: wifi_test_wifi_2_icmp: (gw_addr_4.s_addr equal to 0) Gateway address is not set FAIL - test_wifi_2_icmp in 0.015 seconds =================================================================== START - test_wifi_3_disconnect I: Failed to disconnect from hotspot I: Disconnect request failed with error: -11 Assertion failed at WEST_TOPDIR/zephyr/tests/boards/espressif/wifi/src/main.c:289: wifi_test_wifi_3_disconnect: (ret not equal to 0) Disconect request failed FAIL - test_wifi_3_disconnect in 0.022 seconds =================================================================== TESTSUITE wifi failed. ------ TESTSUITE SUMMARY START ------ SUITE FAIL - 0.00% [wifi]: pass = 0, fail = 4, skip = 0, total = 4 duration = 0.080 seconds - FAIL - [wifi.test_wifi_0_scan] duration = 0.021 seconds - FAIL - [wifi.test_wifi_1_connect] duration = 0.022 seconds - FAIL - [wifi.test_wifi_2_icmp] duration = 0.015 seconds - FAIL - [wifi.test_wifi_3_disconnect] duration = 0.022 seconds ... (6 lines left)
ERRORS running example from zephyr/samples/net/wifi
Connecting...... Detecting chip type... Unsupported detection protocol, switching and trying again... Connecting...... Detecting chip type... ESP32 --- idf_monitor on /dev/ttyUSB0 115200 --- --- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H --- 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:0x3ffb0000,len:13876 load:0x40080000,len:80672 0x40080000: _WindowOverflow4 at /home/linux/zephyrproject/zephyr/arch/xtensa/core/window_vectors.S:56 1150 mmu set 00010000, pos 00010000 entry 0x40088eec 0x40088eec: __start at /home/linux/zephyrproject/zephyr/soc/espressif/common/loader.c:231 I (55) boot: ESP Simple boot I (55) boot: compile time Oct 6 2024 02:21:09 W (55) boot: Unicore bootloader I (55) spi_flash: detected chip: generic I (58) spi_flash: flash io: dio I (61) boot: chip revision: v3.0 I (64) boot.esp32: SPI Speed : 40MHz I (67) boot.esp32: SPI Mode : DIO I (71) boot.esp32: SPI Flash Size : 4MB I (75) boot: Enabling RNG early entropy source... I (79) boot: DRAM: lma 0x00001020 vma 0x3ffb0000 len 0x3634 (13876) I (85) boot: IRAM: lma 0x0000465c vma 0x40080000 len 0x13b20 (80672) 0x40080000: _WindowOverflow4 at /home/linux/zephyrproject/zephyr/arch/xtensa/core/window_vectors.S:56 I (91) boot: padd: lma 0x00018188 vma 0x00000000 len 0x7e70 (32368) I (98) boot: IMAP: lma 0x00020000 vma 0x400d0000 len 0x595b4 (366004) 0x400d0000: _stext at ??:? I (104) boot: padd: lma 0x000795bc vma 0x00000000 len 0x6a3c (27196) I (110) boot: DMAP: lma 0x00080000 vma 0x3f400000 len 0x1475c (83804) I (116) boot: Image with 6 segments I (120) boot: DROM segment: paddr=00080000h, vaddr=3f400000h, size=1475Ch ( 83804) map I (127) boot: IROM segment: paddr=00020000h, vaddr=400d0000h, size=595B4h (366004) map I (168) heap: ESP runtime heap init at 0x3ffc4150 size 111 kB. [00:00:00.172,000] <err> esp32_wifi_adapter: Failed to init supplicant (0x101) [00:00:00.172,000] <err> esp32_wifi: Unable to initialize the wifi *** Booting Zephyr OS build v3.7.0-3952-gb6aed5c505e6 *** uart:~$ wifi scan Scan request failed [00:00:32.188,000] <err> esp32_wifi: Failed to set Wi-Fi mode (12289) uart:~$ wifi status Status: successful ================== State: INACTIVE
ERRORS running example from samples/boards/espressif/wifi_apsta_mode/
Connecting.... Detecting chip type... ESP32 --- idf_monitor on /dev/ttyUSB0 115200 --- --- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H --- 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:0x3ffb0000,len:15272 load:0x40080000,len:74160 1150 mmu set 00010000, pos 00010000 0x40080000: _WindowOverflow4 at /home/linux/zephyrproject/zephyr/arch/xtensa/core/window_vectors.S:56 entry 0x40088c60 I (53) boot: ESP Simple boot 0x40088c60: __start at /home/linux/zephyrproject/zephyr/soc/espressif/common/loader.c:231 I (53) boot: compile time Oct 6 2024 03:18:25 W (53) boot: Unicore bootloader I (53) spi_flash: detected chip: generic I (56) spi_flash: flash io: dio I (58) boot: chip revision: v3.0 I (61) boot.esp32: SPI Speed : 40MHz I (65) boot.esp32: SPI Mode : DIO I (69) boot.esp32: SPI Flash Size : 4MB I (72) boot: Enabling RNG early entropy source... I (77) boot: DRAM: lma 0x00001020 vma 0x3ffb0000 len 0x3ba8 (15272) I (83) boot: IRAM: lma 0x00004bd0 vma 0x40080000 len 0x121b0 (74160) 0x40080000: _WindowOverflow4 at /home/linux/zephyrproject/zephyr/arch/xtensa/core/window_vectors.S:56 I (89) boot: padd: lma 0x00016d98 vma 0x00000000 len 0x9260 (37472) I (95) boot: IMAP: lma 0x00020000 vma 0x400d0000 len 0x573b4 (357300) I (101) boot: padd: lma 0x000773bc vma 0x00000000 len 0x8c3c (35900) 0x400d0000: _stext at ??:? I (108) boot: DMAP: lma 0x00080000 vma 0x3f400000 len 0xbbe0 (48096) I (114) boot: Image with 6 segments I (117) boot: DROM segment: paddr=00080000h, vaddr=3f400000h, size=0BBE0h ( 48096) map I (125) boot: IROM segment: paddr=00020000h, vaddr=400d0000h, size=573B4h (357300) map I (166) heap: ESP runtime heap init at 0x3ffc4ff8 size 108 kB. [00:00:00.169,000] <err> esp32_wifi_adapter: Failed to init supplicant (0x101) [00:00:00.170,000] <err> esp32_wifi: Unable to initialize the wifi *** Booting Zephyr OS build v3.7.0-3952-gb6aed5c505e6 *** [00:00:05.171,000] <inf> MAIN: Turning on AP Mode [00:00:05.172,000] <dbg> net_dhcpv4_server: net_dhcpv4_server_start: Started DHCPv4 server, address pool: [00:00:05.172,000] <dbg> net_dhcpv4_server: net_dhcpv4_server_start: 0: 192.168.4.11 [00:00:05.172,000] <dbg> net_dhcpv4_server: net_dhcpv4_server_start: 1: 192.168.4.12 [00:00:05.172,000] <dbg> net_dhcpv4_server: net_dhcpv4_server_start: 2: 192.168.4.13 [00:00:05.172,000] <dbg> net_dhcpv4_server: net_dhcpv4_server_start: 3: 192.168.4.14 [00:00:05.173,000] <inf> MAIN: DHCPv4 server started... [00:00:05.173,000] <err> esp32_wifi: Failed to set Wi-Fi mode (12289) [00:00:05.173,000] <err> MAIN: NET_REQUEST_WIFI_AP_ENABLE failed, err: -22 [00:00:05.173,000] <inf> MAIN: Connecting to SSID: SSID [00:00:05.173,000] <err> esp32_wifi: Failed to get Wi-Fi mode (12289) [00:00:05.173,000] <err> MAIN: Unable to Connect to (SSID)
All examples built with west build -p -b esp32_devkitc_wroom/esp32/procpu
west build -p -b esp32_devkitc_wroom/esp32/procpu
When checked out to tag v3.7.0 example zephyr/samples/net/wifi works as expected
tag v3.7.0
example zephyr/samples/net/wifi
Hi @Bajec! We appreciate you submitting your first issue for our open-source project. 🌟
Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙
Hi, currently on main branch none of the wifi examples work with esp32_devkitc_wroom/esp32/procpu
ERRORS running example from zephyr/test/boards/espressif/wifi
ERRORS running example from zephyr/samples/net/wifi
ERRORS running example from samples/boards/espressif/wifi_apsta_mode/
All examples built with
west build -p -b esp32_devkitc_wroom/esp32/procpu
When checked out to
tag v3.7.0
example zephyr/samples/net/wifi
works as expected