micropython / micropython

MicroPython - a lean and efficient Python implementation for microcontrollers and constrained systems
https://micropython.org
Other
19.09k stars 7.63k forks source link

ESP32-S3 FH4R2 v0.2 No WiFi #15602

Open PsuFan opened 1 month ago

PsuFan commented 1 month ago

Port, board and/or hardware

Custom Made ESP32-S3 Circuit Board (lol)

MicroPython version

v1.23.0_4M_FLASH

Reproduction

from network import WLAN sta = WLAN(0) sta.active(1) sta.connect('xxx','xxx') sta.ifconfig()

Expected behaviour

No response

Observed behaviour

('0.0.0.0', xxxx)

Additional Information

Hey, I was wondering if you guys could point me at anything to try to get the WiFi connecting. I tried the ESP32-S3 generic and octal spiram builds which both had bootup warnings and wifi init failures before finding the correct 4MB flash version. This cleared the boot errors and WiFi init errors but connect does nothing. To be clear, this is a custom circuit board with a custom WiFi antenna circuit, its entirely possible I did not connect it properly. However, sta.scan() does return all of my available networks. I believe my signal is in the -75 ballpark. I have tried to enable logging in boot.py but no additional serial was printed when trying to connect. I also attempted to see if it was working with Arduino but have not been able to get it to boot. I just get the final line: entry 0x___ and nothing after until it eventually reboots.

Code of Conduct

Yes, I agree

createdbyjurand commented 1 month ago

ESP32_GENERIC_S3-FLASH_4M-20240602-v1.23.0.bin ESP32 S3 ZERO

I also have wifi issues:

  1. First wlan.scan() was finding no SSIDs. Than, changing nothing, it worked once, it saw SSIDs in the area. Found out that for some reason, not always, but most of the time, even if wlan.active() is True, you have to reset it - turn False and True again, and than it sees SSIDs in the area. ssids

  2. WiFi is not connecting to known SSID with password. wlan.connect(ssid, KNOWN_NETWORKS[ssid]) is not connecting to WiFi. It has right password and WiFi name, and the same code is working on ESP32 C3 board (nothing changed) so the issue is in ESP32 S3 bin soft possibly.

createdbyjurand commented 4 weeks ago

Tried on ESP32_GENERIC_S3-FLASH_4M-20240808-v1.24.0-preview.181.g91f4a6b9e.bin but still wifi does not connect to network :(

PsuFan commented 4 weeks ago

@createdbyjurand how do you get this debug output??

my waveshare zero from amazon works with the flash 4m...