ESP32-C3 disconnecting after starting Wi-Fi

alexandrochen
Posts: 1
Joined: Sat Feb 10, 2024 11:41 am

ESP32-C3 disconnecting after starting Wi-Fi

Postby alexandrochen » Sat Feb 10, 2024 11:47 am

My ESP32-C3 disconnects when I add this Rust code (note: there are no errors whatsoever):

Code: Select all

use embedded_svc::wifi::{ClientConfiguration, Configuration, Wifi};

let mut wifi_driver = EspWifi::new(peripherals.modem, sys_loop, Some(nvs)).unwrap();
wifi_driver.start().unwrap(); // more specifically, this line
This is what espmonior sees before my ESP32-C3 disconnects from my mini PC:

Code: Select all

I (500) wifi:wifi firmware version: 1ba8b6a
I (500) wifi:wifi certification version: v7.0
I (500) wifi:config NVS flash: enabled
I (500) wifi:config nano formating: disabled
I (510) wifi:Init data frame dynamic rx buffer num: 32
I (510) wifi:Init management frame dynamic rx buffer num: 32
I (520) wifi:Init management short buffer num: 32
I (520) wifi:Init dynamic tx buffer num: 32
I (530) wifi:Init static tx FG buffer num: 2
I (530) wifi:Init static rx buffer size: 1600
I (530) wifi:Init static rx buffer num: 10
I (540) wifi:Init dynamic rx buffer num: 32
I (540) wifi_init: rx ba win: 6
I (550) wifi_init: tcpip mbox: 32
I (550) wifi_init: udp mbox: 6
I (550) wifi_init: tcp mbox: 6
I (560) wifi_init: tcp tx win: 5744
I (560) wifi_init: tcp rx win: 5744
I (570) wifi_init: tcp mss: 1440
I (570) wifi_init: WiFi IRAM OP enabled
I (570) wifi_init: WiFi RX IRAM OP enabled
I (585) phy_init: phy_version 1150,7c3c08f,Jan 24 2024,17:32:21
Device disconnected; exiting
What could the issue be?

[This](https://gist.github.com/rajeshpachaikan ... f323bcdd6d) is the full code.
[This](https://gist.github.com/weiying-chen/96 ... efea2949de) is the full espmonitor log.

Also [posted](https://www.reddit.com/r/embedded/comme ... ting_wifi/) on Reddit

Who is online

Users browsing this forum: No registered users and 85 guests