Search found 9 matches

by khaaaaaan
Thu Aug 10, 2023 3:54 pm
Forum: ESP-IDF
Topic: WiFi: Getting WIFI_REASON_NO_AP_FOUND Despite Being Able to See AP in Scan Results
Replies: 6
Views: 2246

Re: WiFi: Getting WIFI_REASON_NO_AP_FOUND Despite Being Able to See AP in Scan Results

Ah, I see. I had interpreted that define as being either WPA2 PSK or WPA3 PSK. Which define should be used if I want to support anything WPA2 or above? Essentially, I want to reject WEP and WPA (these protocols have been broken for a very long time) and accept anything above that.
by khaaaaaan
Thu Aug 10, 2023 1:09 am
Forum: ESP-IDF
Topic: WiFi: Getting WIFI_REASON_NO_AP_FOUND Despite Being Able to See AP in Scan Results
Replies: 6
Views: 2246

Re: WiFi: Getting WIFI_REASON_NO_AP_FOUND Despite Being Able to See AP in Scan Results

Ok, I was able to hunt this back down to the following line in the WiFi config: .threshold.authmode = WIFI_AUTH_WPA2_WPA3_PSK, If I comment this, everything works as expected. What I don't understand is why. If I look over my AP configuration the only authentication mode I have enabled is WPA2 PSK. ...
by khaaaaaan
Thu Aug 10, 2023 12:46 am
Forum: ESP-IDF
Topic: WiFi: Getting WIFI_REASON_NO_AP_FOUND Despite Being Able to See AP in Scan Results
Replies: 6
Views: 2246

Re: WiFi: Getting WIFI_REASON_NO_AP_FOUND Despite Being Able to See AP in Scan Results

Ah, crap, looks like the example works when run unmodified. I must have missed something when I implemented it for my project; my bad. On the bright side, at least my board design works!

Thanks again for the quick idiot-check.
by khaaaaaan
Wed Aug 09, 2023 2:03 am
Forum: ESP-IDF
Topic: WiFi: Getting WIFI_REASON_NO_AP_FOUND Despite Being Able to See AP in Scan Results
Replies: 6
Views: 2246

WiFi: Getting WIFI_REASON_NO_AP_FOUND Despite Being Able to See AP in Scan Results

Hello all, I am having a bit of trouble getting WiFi to work on ESP-IDF 4.4.5. Specifically, I can perform a WiFi scan, see my AP in the results along with the correct details but, when I actually attempt to connect, I receive WIFI_REASON_NO_AP_FOUND every time. Logs and sources attached for referen...
by khaaaaaan
Thu Jul 27, 2023 1:08 am
Forum: ESP-IDF
Topic: No RMII Traffic Despite Properly Configured PHY
Replies: 9
Views: 3665

Re: No RMII Traffic Despite Properly Configured PHY

Well, I found the issue: there was a cracked solder joint under the RXD0 pin on the ESP. Infuriatingly, I was probing RXD1 which is why we didn't see anything untoward in the waveforms I posted. Reworking this and the surrounding connections now has RMII functioning as expected. How embarrassing. :o...
by khaaaaaan
Sat Jul 22, 2023 9:55 pm
Forum: ESP-IDF
Topic: No RMII Traffic Despite Properly Configured PHY
Replies: 9
Views: 3665

Re: No RMII Traffic Despite Properly Configured PHY

It signify that link between KSZ8081 and your PC was negotiated and is up, i.e. PHY MDI link status, check details here . In any case, this tells you that the PHY is able to communicate with its counterpart (the PC) and that PHY MII Management Interface (MDC/MDIO) is functional. However, it seems t...
by khaaaaaan
Tue Jul 18, 2023 3:21 pm
Forum: ESP-IDF
Topic: No RMII Traffic Despite Properly Configured PHY
Replies: 9
Views: 3665

Re: No RMII Traffic Despite Properly Configured PHY

I checked the internal documentation and this EMACCSTATUS_REG register is optional and is present only when the MAC is configured for the SGMII, RGMII, or SMII PHY interface. Therefore you cannot get correct data from it when in RMII mode. Well, that certainly answers some questions of mine! Ok, di...
by khaaaaaan
Mon Jul 17, 2023 4:46 pm
Forum: ESP-IDF
Topic: No RMII Traffic Despite Properly Configured PHY
Replies: 9
Views: 3665

Re: No RMII Traffic Despite Properly Configured PHY

ESP-IDF version is 4.4.5 (I haven't had a chance to make the jump to the new 5 series yet :oops: ). I have attached a log demonstrating the PHY link. Most interesting is probably the end where I have some debug code in the SMI read command (smi -r) to dump the internal MAC registers, which seems to ...
by khaaaaaan
Sat Jul 15, 2023 9:35 pm
Forum: ESP-IDF
Topic: No RMII Traffic Despite Properly Configured PHY
Replies: 9
Views: 3665

No RMII Traffic Despite Properly Configured PHY

Hello all, I am working on a custom board based on the ESP32-PICO-D4 SOC. Unfortunately, I am having a devil of a time getting the RMII link to function. Specifically, I see the PHY (KSZ8081) initialize correctly and output a 50MHz reference clock on REF_CLK but the EMACCSTATUS_REG register never sh...