ESP32-C6 problem running wifi scan

cassianocampes
Posts: 9
Joined: Sun Jun 04, 2023 11:19 pm

ESP32-C6 problem running wifi scan

Postby cassianocampes » Sun Aug 06, 2023 5:22 pm

I am trying to run the examples/wifi/scan on the ESP32-C6. For that, I am using the esp-idf v5.1 branch.

When building for the ESP32-C6, the example keeps resetting the module, and nothing related to the wifi scan is shown.
If I enable the ESP_WIFI_DEBUG_PRINT to print the debug messages, the reset behavior keeps happening, but in some of the resets, the Wifi scan "works", or at least it prints some of the SSIDs near by, as shown here:

Code: Select all

I (636) wifi:mode : sta (40:4c:ca:40:84:00)
I (636) wifi:enable tsf
I (646) wpa: BSS: Add new id 0 BSSID 68:02:b8:9e:14:16 SSID 'CLARO_2GA392E5' chan 1
I (656) wpa: BSS: Add new id 1 BSSID 72:02:b8:9e:14:16 SSID 'NET-CLARO-WIFI' chan 1
I (666) wpa: BSS: Add new id 2 BSSID b8:5e:71:dd:e4:f0 SSID 'Netvirtua965' chan 1
I (696) wpa: BSS: Add new id 3 BSSID 78:e9:cf:43:47:4f SSID 'VIVOFIBRA-4741' chan 1
I (696) wpa: BSS: Add new id 4 BSSID 08:7e:64:85:0c:34 SSID 'ROSA_101' chan 1
I (726) wpa: BSS: Add new id 5 BSSID 84:1e:a3:88:bf:c0 SSID 'CLARO_2G88BFBB' chan 1
I (736) wpa: BSS: Add new id 6 BSSID 90:0a:62:5b:0e:7f SSID 'VIVOFIBRA-0E71' chan 1
ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0xf (LP_BOD_SYS),boot:0x
Here is the full logs, where reset occurs, and in some cases the SSID are shown:

Code: Select all

SPIWP:0xee
mode:DIO, clock div:2
load:0x4086c410,len:0xd48
load:0x4086e610,len:0x2d68
load:0x40875720,len:0x17f0
entry 0x4086c410
I (24) boot: ESP-IDF v5.1-rc2-dirty 2nd stage bootloader
I (24) boot: compile time Aug  6 2023 14:18:11
I (25) boot: chip revision: v0.0
I (27) boot.esp32c6: SPI Speed      : 40MHz
I (32) boot.esp32c6: SPI Mode       : DIO
I (37) boot.esp32c6: SPI Flash Size : 2MB
I (42) boot: Enabling RNG early entropy source...
I (47) boot: Partition Table:
I (51) boot: ## Label            Usage          Type ST Offset   Length
I (58) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (65) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (73) boot:  2 factory          factory app      00 00 00010000 00100000
I (80) boot: End of partition table
I (85) esp_image: segment 0: paddr=00010020 vaddr=42090020 size=244c8h (148680) map
I (123) esp_image: segment 1: paddr=000344f0 vaddr=40800000 size=03b28h ( 15144) load
I (128) esp_image: segment 2: paddr=00038020 vaddr=42000020 size=8b098h (569496) map
I (245) esp_image: segment 3: paddr=000c30c0 vaddr=40803b28 size=0cf04h ( 52996) load
I (258) esp_image: segment 4: paddr=000cffcc vaddr=40810a30 size=0317ch ( 12668) load
I (265) boot: Loaded app from partition at offset 0x10000
I (266) boot: Disabling RNG early entropy source...
I (278) cpu_start: Unicore app
I (278) cpu_start: Pro cpu up.
W (287) clk: esp_perip_clk_init() has not been implemented yet
I (293) cpu_start: Pro cpu start user code
I (294) cpu_start: cpu freq: 160000000 Hz
I (294) cpu_start: Application information:
I (296) cpu_start: Project name:     scan
I (301) cpu_start: App version:      v5.1-rc2-dirty
I (307) cpu_start: Compile time:     Aug  6 2023 14:19:51
I (313) cpu_start: ELF file SHA256:  2c2c9507f04f9b13...
I (319) cpu_start: ESP-IDF:          v5.1-rc2-dirty
I (324) cpu_start: Min chip rev:     v0.0
I (329) cpu_start: Max chip rev:     v0.99 
I (334) cpu_start: Chip rev:         v0.0
I (339) heap_init: Initializing. RAM available for dynamic allocation:
I (346) heap_init: At 408187A0 len 00063E70 (399 KiB): D/IRAM
I (352) heap_init: At 4087C610 len 00002F54 (11 KiB): STACK/DIRAM
I (359) heap_init: At 50000010 len 00003FF0 (15 KiB): RTCRAM
I (366) spi_flash: detected chip: generic
I (370) spi_flash: flash io: dio
W (374) spi_flash: Detected size(8192k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (387) sleep: Configure to isolate all GPIO pins in sleep state
I (394) sleep: Enable automatic switching of GPIO sleep configuration
I (401) coexist: coex firmware version: ebddf30
I (406) coexist: coexist rom version 5b8dcfa
I (411) app_start: Starting scheduler on CPU0
I (416) main_task: Started on CPU0
I (416) main_task: Calling app_main()
I (426) pp: pp rom version: 5b8dcfa
I (426) net80211: net80211 rom version: 5b8dcfa
I (436) wifi:wifi driver task: 4081eeb8, prio:23, stack:6656, core=0
I (446) wifi:wifi firmware version: b2f1f86
I (446) wifi:wifi certification version: v7.0
I (446) wifi:config NVS flash: enabled
I (446) wifi:config nano formating: disabled
I (446) wifi:mac_version:HAL_MAC_ESP32AX_761,ut_version:N
I (456) wifi:Init data frame dynamic rx buffer num: 32
I (456) wifi:Init management frame dynamic rx buffer num: 32
I (466) wifi:Init management short buffer num: 32
I (466) wifi:Init dynamic tx buffer num: 32
I (476) wifi:Init static tx FG buffer num: 2
I (476) wifi:Init static rx buffer size: 1700
I (486) wifi:Init static rx buffer num: 10
I (486) wifi:Init dynamic rx buffer num: 32
I (486) wifi_init: rx ba win: 6
I (496) wifi_init: tcpip mbox: 32
I (496) wifi_init: udp mbox: 6
I (506) wifi_init: tcp mbox: 6
I (506) wifi_init: tcp tx win: 5744
I (506) wifi_init: tcp rx win: 5744
I (516) wifi_init: tcp mss: 1440
I (516) wifi_init: WiFi IRAM OP enabled
I (526) wifi_init: WiFi RX IRAM OP enabled
I (526) phy_init: phy_version 202,b4b3263,May 17 2023,20:14:14
W (576) esp_adapter: wifi_reset_mac_wrapper() has not been implemented yet
W (576) wifi:(bf)761:0x600a7cac:0x01b4b4b0
W (576) wifi:(agc)0x600a7128:0xd21a8800, min.avgNF:0xce->0xd2(dB), RCalCount:0x1a7, min.RRssi:0x800(-128.00)
W (586) wifi:(TB)WDEV_PWR_TB_MCS0:19
W (586) wifi:(TB)WDEV_PWR_TB_MCS1:19
W (596) wifi:(TB)WDEV_PWR_TB_MCS2:19
W (596) wifi:(TB)WDEV_PWR_TB_MCS3:19
W (596) wifi:(TB)WDEV_PWR_TB_MCS4:19
W (606) wifi:(TB)WDEV_PWR_TB_MCS5:19
W (606) wifi:(TB)WDEV_PWR_TB_MCS6:18
W (606) wifi:(TB)WDEV_PWR_TB_MCS7:18
W (616) wifi:(TB)WDEV_PWR_TB_MCS8:17
W (616) wifi:(TB)WDEV_PWR_TB_MCS9:15
W (616) wifi:(TB)WDEV_PWR_TB_MCS10:15
W (626) wifi:(TB)WDEV_PWR_TB_MCS11:15
I (626) wifi:11ax coex: WDEVAX_PTI0(0x55777555), WDEVAX_PTI1(0x00003377).

I (636) wifi:mode : sta (40:4c:ca:40:84:00)
I (636) wifi:enable tsf
I (646) wpa: BSS: Add new id 0 BSSID 78:e9:cf:43:47:4f SSID 'VIVOFIBRA-4741' chan 1
I (646) wpa: BSS: Add new id 1 BSSID 68:02:b8:9e:14:16 SSID 'CLARO_2GA392E5' chan 1
I (666) wpa: BSS: Add new id 2 BSSID 72:02:b8:9e:14:16 SSID 'NET-CLARO-WIFI' chan 1
I (666) wpa: BSS: Add new id 3 BSSID ac:15:a2:3e:34:4f SSID 'VIVOFIBRA-0E71_EXT' chan 1
I (676) wpa: BSS: Add new id 4 BSSID 84:1e:a3:88:bf:c0 SSID 'CLARO_2G88BFBB' chan 1
I (686) wpa: BSS: Add new id 5 BSSID 90:0a:62:5b:0e:7f SSID 'VIVOFIBRA-0E71' chan 1
I (716) wpa: BSS: Add new id 6 BSSID d4:e2:cb:93:b4:a8 SSID 'Pacheco.2g' chan 1
I (756) wpa: BSS: Add new id 7 BSSID 08:7e:64:85:0c:34 SSID 'ROSA_101' chan 1
ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0xf (LP_BOD_SYS),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:2
load:0x4086c410,len:0xd48
load:0x4086e610,len:0x2d68
load:0x40875720,len:0x17f0
entry 0x4086c410
I (24) boot: ESP-IDF v5.1-rc2-dirty 2nd stage bootloader
I (24) boot: compile time Aug  6 2023 14:18:11
I (25) boot: chip revision: v0.0
I (27) boot.esp32c6: SPI Speed      : 40MHz
I (32) boot.esp32c6: SPI Mode       : DIO
I (37) boot.esp32c6: SPI Flash Size : 2MB
I (42) boot: Enabling RNG early entropy source...
I (47) boot: Partition Table:
I (51) boot: ## Label            Usage          Type ST Offset   Length
I (58) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (65) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (73) boot:  2 factory          factory app      00 00 00010000 00100000
I (80) boot: End of partition table
I (85) esp_image: segment 0: paddr=00010020 vaddr=42090020 size=244c8h (148680) map
I (123) esp_image: segment 1: paddr=000344f0 vaddr=40800000 size=03b28h ( 15144) load
I (128) esp_image: segment 2: paddr=00038020 vaddr=42000020 size=8b098h (569496) map
I (245) esp_image: segment 3: paddr=000c30c0 vaddr=40803b28 size=0cf04h ( 52996) load
I (258) esp_image: segment 4: paddr=000cffcc vaddr=40810a30 size=0317ch ( 12668) load
I (265) boot: Loaded app from partition at offset 0x10000
I (266) boot: Disabling RNG early entropy source...
I (278) cpu_start: Unicore app
I (278) cpu_start: Pro cpu up.
W (287) clk: esp_perip_clk_init() has not been implemented yet
I (293) cpu_start: Pro cpu start user code
I (294) cpu_start: cpu freq: 160000000 Hz
I (294) cpu_start: Application information:
I (296) cpu_start: Project name:     scan
I (301) cpu_start: App version:      v5.1-rc2-dirty
I (307) cpu_start: Compile time:     Aug  6 2023 14:19:51
I (313) cpu_start: ELF file SHA256:  2c2c9507f04f9b13...
I (319) cpu_start: ESP-IDF:          v5.1-rc2-dirty
I (324) cpu_start: Min chip rev:     v0.0
I (329) cpu_start: Max chip rev:     v0.99 
I (334) cpu_start: Chip rev:         v0.0
I (339) heap_init: Initializing. RAM available for dynamic allocation:
I (346) heap_init: At 408187A0 len 00063E70 (399 KiB): D/IRAM
I (352) heap_init: At 4087C610 len 00002F54 (11 KiB): STACK/DIRAM
I (359) heap_init: At 50000010 len 00003FF0 (15 KiB): RTCRAM
I (366) spi_flash: detected chip: generic
I (370) spi_flash: flash io: dio
W (374) spi_flash: Detected size(8192k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (387) sleep: Configure to isolate all GPIO pins in sleep state
I (394) sleep: Enable automatic switching of GPIO sleep configuration
I (401) coexist: coex firmware version: ebddf30
I (406) coexist: coexist rom version 5b8dcfa
I (411) app_start: Starting scheduler on CPU0
I (416) main_task: Started on CPU0
I (416) main_task: Calling app_main()
I (426) pp: pp rom version: 5b8dcfa
I (426) net80211: net80211 rom version: 5b8dcfa
I (436) wifi:wifi driver task: 4081eeb8, prio:23, stack:6656, core=0
I (446) wifi:wifi firmware version: b2f1f86
I (446) wifi:wifi certification version: v7.0
I (446) wifi:config NVS flash: enabled
I (446) wifi:config nano formating: disabled
I (446) wifi:mac_version:HAL_MAC_ESP32AX_761,ut_version:N
I (456) wifi:Init data frame dynamic rx buffer num: 32
I (456) wifi:Init management frame dynamic rx buffer num: 32
I (466) wifi:Init management short buffer num: 32
I (466) wifi:Init dynamic tx buffer num: 32
I (476) wifi:Init static tx FG buffer num: 2
I (476) wifi:Init static rx buffer size: 1700
I (486) wifi:Init static rx buffer num: 10
I (486) wifi:Init dynamic rx buffer num: 32
I (486) wifi_init: rx ba win: 6
I (496) wifi_init: tcpip mbox: 32
I (496) wifi_init: udp mbox: 6
I (506) wifi_init: tcp mbox: 6
I (506) wifi_init: tcp tx win: 5744
I (506) wifi_init: tcp rx win: 5744
I (516) wifi_init: tcp mss: 1440
I (516) wifi_init: WiFi IRAM OP enabled
I (526) wifi_init: WiFi RX IRAM OP enabled
I (526) phy_init: phy_version 202,b4b3263,May 17 2023,20:14:14
W (576) esp_adapter: wifi_reset_mac_wrapper() has not been implemented yet
W (576) wifi:(bf)761:0x600a7cac:0x01b4b4b0
W (576) wifi:(agc)0x600a7128:0xd214f800, min.avgNF:0xce->0xd2(dB), RCalCount:0x14f, min.RRssi:0x800(-128.00)
W (586) wifi:(TB)WDEV_PWR_TB_MCS0:19
W (586) wifi:(TB)WDEV_PWR_TB_MCS1:19
W (596) wifi:(TB)WDEV_PWR_TB_MCS2:19
W (596) wifi:(TB)WDEV_PWR_TB_MCS3:19
W (596) wifi:(TB)WDEV_PWR_TB_MCS4:19
W (606) wifi:(TB)WDEV_PWR_TB_MCS5:19
W (606) wifi:(TB)WDEV_PWR_TB_MCS6:18
W (606) wifi:(TB)WDEV_PWR_TB_MCS7:18
W (616) wifi:(TB)WDEV_PWR_TB_MCS8:17
W (616) wifi:(TB)WDEV_PWR_TB_MCS9:15
W (616) wifi:(TB)WDEV_PWR_TB_MCS10:15
W (626) wifi:(TB)WDEV_PWR_TB_MCS11:15
I (626) wifi:11ax coex: WDEVAX_PTI0(0x55777555), WDEVAX_PTI1(0x00003377).

I (636) wifi:mode : sta (40:4c:ca:40:84:00)
I (636) wifi:enable tsf
I (646) wpa: BSS: Add new id 0 BSSID 68:02:b8:9e:14:16 SSID 'CLARO_2GA392E5' chan 1
I (656) wpa: BSS: Add new id 1 BSSID 72:02:b8:9e:14:16 SSID 'NET-CLARO-WIFI' chan 1
I (666) wpa: BSS: Add new id 2 BSSID b8:5e:71:dd:e4:f0 SSID 'Netvirtua965' chan 1
I (696) wpa: BSS: Add new id 3 BSSID 78:e9:cf:43:47:4f SSID 'VIVOFIBRA-4741' chan 1
I (696) wpa: BSS: Add new id 4 BSSID 08:7e:64:85:0c:34 SSID 'ROSA_101' chan 1
I (726) wpa: BSS: Add new id 5 BSSID 84:1e:a3:88:bf:c0 SSID 'CLARO_2G88BFBB' chan 1
I (736) wpa: BSS: Add new id 6 BSSID 90:0a:62:5b:0e:7f SSID 'VIVOFIBRA-0E71' chan 1
ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0xf (LP_BOD_SYS),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:2
load:0x4086c410,len:0xd48
load:0x4086e610,len:0x2d68
load:0x40875720,len:0x17f0
entry 0x4086c410
I (24) boot: ESP-IDF v5.1-rc2-dirty 2nd stage bootloader
I (24) boot: compile time Aug  6 2023 14:18:11


ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32-C6 problem running wifi scan

Postby ESP_Sprite » Mon Aug 07, 2023 1:20 am

LP_BOD_SYS
That's usually a brownout, as in the supply voltage got too low. Check your power supply or USB cable.

cassianocampes
Posts: 9
Joined: Sun Jun 04, 2023 11:19 pm

Re: ESP32-C6 problem running wifi scan

Postby cassianocampes » Mon Aug 07, 2023 12:11 pm

Thank you @ESP_Sprite, you were right.

I connected both USB cables on the ESP32-C6 and then the issue is gone.

Who is online

Users browsing this forum: MichaelS and 84 guests