Nano RP2040 Cannot get to connect to WIFI

Hello There,

I can get the board to run the basic LED blink tests and can drive a sk6812 LED strip however I cannot get it to connect to my WiFi. I have tested it on a number of Wifi routers and still no luck.
I have setup the secrets.h file with the proper values...
#define SECRET_SSID "Miller-Travel_2G"
#define SECRET_PASS "the4444time333is22"

I can get phones and other devices to connect to the Wifi. If I run the WiFiNINA->Example->ScanNetworksAdvanced example it does see the Network (SSID Miller-Travel_2G) that I am trying to connect to.

15:15:20.403 -> Scanning available networks...
15:15:20.403 -> ** Scan Networks **
15:15:24.450 -> number of available networks: 4
15:15:24.450 -> 1) Signal: -38 dBm Channel: 1 BSSID: 94:83:C4:17:7D:C7
15:15:24.450 -> Encryption: WPA2 SSID: Miller-Travel_2G
15:15:24.450 -> 2) Signal: -75 dBm Channel: 6 BSSID: 7A:45:58:A3:19:8A
15:15:24.493 -> Encryption: WPA2 SSID: Miller-Guest
15:15:24.493 -> 3) Signal: -76 dBm Channel: 6 BSSID: 7A:45:58:93:19:8A
15:15:24.493 -> Encryption: WPA2 SSID: Miller-IOT
15:15:24.493 -> 4) Signal: -76 dBm Channel: 6 BSSID: 78:45:58:83:19:8A
15:15:24.493 -> Encryption: WPA2 SSID: Miller-SS
15:15:24.493 ->

The firmware has been updated.
15:13:18.580 -> WiFiNINA firmware check.
15:13:18.580 ->
15:13:19.301 -> Firmware version installed: 1.5.0
15:13:19.301 -> Latest firmware version available : 1.5.0
15:13:19.301 ->
15:13:19.301 -> Check result: PASSED

If I run the WiFiNINA->Example->ConnectWithWPA example it just keeps repeating.....
15:02:56.712 -> Attempting to connect to WPA SSID: Miller-Travel_2G
15:03:08.932 -> Attempting to connect to WPA SSID: Miller-Travel_2G
15:03:21.036 -> Attempting to connect to WPA SSID: Miller-Travel_2G
15:03:33.176 -> Attempting to connect to WPA SSID: Miller-Travel_2G
15:03:45.282 -> Attempting to connect to WPA SSID: Miller-Travel_2G
15:03:57.386 -> Attempting to connect to WPA SSID: Miller-Travel_2G
15:04:09.491 -> Attempting to connect to WPA SSID: Miller-Travel_2G
15:04:21.579 -> Attempting to connect to WPA SSID: Miller-Travel_2G
15:04:33.704 -> Attempting to connect to WPA SSID: Miller-Travel_2G
15:04:45.805 -> Attempting to connect to WPA SSID: Miller-Travel_2G
15:04:57.919 -> Attempting to connect to WPA SSID: Miller-Travel_2G
15:05:10.005 -> Attempting to connect to WPA SSID: Miller-Travel_2G
15:05:22.111 -> Attempting to connect to WPA SSID: Miller-Travel_2G

Any suggestions would be appreciated.
Brian

I can get the example from https://docs.arduino.cc/tutorials/nano-rp2040-connect/rp2040-ap-web-server-rgb to work.

Briaj

You might want to obfuscate the WiFi password.

It is on a travel router so it is not important, but thanks!

Well looking at the example, its failing to connect and repeatedly failing so it goes around the loop and re-tries.

As to why it is failing, the reasons may be many. The router is using a WiFi protocol or mode that is not being recognized by the ESP (WiFi6, 5GHz only etc), mac filtering or maybe simply that the password is incorrect.

You could try adding a line of code to print the status code which might give some clue: There is a list of them here:

I wonder whether you might also get a little more information by enabling debugs, for example core or all. The output may be rather verbose. Rather strangely it lists Bluetooth, but not WiFi.

I shall do that.

Thanks

OK, so I added the printing of the status to the sketch (I have a hard time calling the program a sketch:), and got the value of 4: WL_CONNECT_FAILED. Not surprising.

Looking at the result of the nano scanning SSID...
5:15:20.403 -> Scanning available networks...
15:15:20.403 -> ** Scan Networks **
15:15:24.450 -> number of available networks: 4
15:15:24.450 -> 1) Signal: -38 dBm Channel: 1 BSSID: 94:83:C4:17:7D:C7
15:15:24.450 -> Encryption: WPA2 SSID: Miller-Travel_2G

I noticed that it indicates that it is a WPA2 network. However when I looked at the router control panel it said that it was a WPA3-SAE network. I changed it to WPA/WPA2-PSK networked and it worked. Ok, so I know the nano wifi worked.

So does that mean that the nano rp2040 is not compatible with WPA3 networks?

My real home network is using WPA3 and I am not crazy about lowering the security.

Thanks
Brian