Ardino RP2040 Connect board with Micropython #18832
-
|
I’m trying to get Micropython to work with an Arduino RP2040 Connect. I’m at the point where most of the Python code runs with no problem, but I’m having trouble with the WiFi. When I get to the first use of the WiFi at “wlan.active(True)” I get a message about the firmware. Is there some wifi firmware that must be updated? How? `` wlan = network.WLAN(network.STA_IF)
MPY: soft reboot |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
|
The wifi is provided by NINA wifi coprocessor. You update the NINA firmware using the Arduino tooling (it runs an updater sketch on the RP2040 which re-flashes the NINA module). AFAIK there is no native MicroPython tooling for the NINA update |
Beta Was this translation helpful? Give feedback.
-
|
I had a couple of the nano rp2040 connect boards in the useless bits drawer. Previous attempts to get the firmware updated proved futile. But reading one could update it in the arduino IDE prompted me to have a go. But no, on my mac no joy. While it auto connected to the correct board (thats new - to me anyway) for a firmware upgrade the IDE just reported no suitable board connected. Bugger. But whilst I was at it I had a go with the arduino-fwuploader (thanks @Josverl for that hint) Yes I went through the pain of the obtuse docs to get it to work. For my mac mini, once I realised I had to download the firmware rather than the arduino-fwuploader grabbing automatically from the internet the command was: As working out the command took me well over the 30-45 minutes young Josveri took to figure out I thought putting a mac os version of the command may give some befuddled chap a starter. The wifi now connects though in my setup I it always takes at least two tries of wlan.connect(ssid, pw) in a connection loop before a successful connection is obtained. Now those old nano rp2040's may have a new lease of life (?). |
Beta Was this translation helpful? Give feedback.
Success! In Windows, the IDE firmware installer worked as it should. Could be a bug in the Linux version?