Arduino Nano RP2040 Connect - why so few examples?

I recently started experimenting with a Nano RP2040 Connect board and am using the Arduino Mbed OS Nano Boards library. One thing that surprised me was how few examples were available with the library. Its also rather weird that the list of only 5 categories starts at 'M'. One very obvious omission, given that this is a WiFi board is tjat there are no WiFi examples. What is available it stuff like MLC, NanoBLE33_System, Scheduler, Threadbug, USB Mass Storage, USBHID, USBMIDI.

I have checked the ./packages/arduino/hardware/mbed_nano/4.11/libraries directory and confirmed that only those categories have been downloaded on both of my computers. Initially, the PC had a much bigger list of examples, but now it also has the same as above.

I am a bit puzzled by this, but wondered whether the examples on the ArduimoCore-mbed Github repository are likely to work qwith this board?

I can't find a repository specifically for the Nano RP2040, although there presumably must be one somewhere?

Hi @BitSeeker. The Nano RP2040 Connect board uses the "WiFiNINA" library for Wi-Fi network communication. Since this library is used by multiple boards (e.g., Nano 33 IoT), it is not bundled with the "Arduino Mbed OS Nano Boards" platform, so you must install it via the Arduino IDE Library Manager.

I'll provide instructions you can follow to do that:

  1. Select Sketch > Include Library > Manage Libraries... from the Arduino IDE menus to open the "Library Manager" view in the left side panel.
  2. Type WiFiNINA in the "Filter your search..." field.
  3. Scroll down through the list of libraries until you see the "WiFiNINA" entry.
  4. You will see an "INSTALL" button at the bottom of the entry. Click the button.
  5. Wait for the installation process to finish, as indicated by a notification at the bottom right corner of the Arduino IDE window:

    ⓘ Successfully installed library ...

After you have done that, you will find a collection of example sketches demonstrating the use of the "WiFiNINA" library under the IDE's File > Examples > WiFiNINA menu.

There is also a reference for the library here:

https://www.arduino.cc/reference/en/libraries/wifinina/

There is not.

1 Like

@gfvalvo the "WiFi" library in that repository is for the Murata 1DX module of the Portenta H7, Portenta X8, and Nicla Vision boards. The repository contains the codebase for all the Arduino boards platforms based on the Mbed OS core, but the packaging system is configured to only include the relevant components for each individual platform, so the "WiFi" library is not bundled with the "Arduino Mbed OS Nano Boards" platform of the Nano RP2040 Connect.

1 Like

Ah, so that's it!. Thank you for the instructions.

I have now installed WiFiNINA and see plenty of examples!

Incidentally I was also looking for LittleFS. I understand it is built into the RP2040 library so will have to do a bit more research to figure out how to use it. However, it looks like the LittleFS tools plugin is no longer supported in IDE2 so no way to set up and specify the LittleFS size, which is a shame.

I had wondered whether it might be something like that, which is why I asked the question. Thank you for clarifying. I won't go assuming that any of those examples will just work.

Earle Philhower, the creator of the alternative "Raspberry Pi Pico/RP2040" boards platform, has created a new version of the tool for use with Arduino IDE 2.x:

1 Like

Thanks. Was looking at this:

Your tool must have come a bit later. Looks like I need to change board libraries though.

Downloaded and works fine. Thank you.

Thanks.

1 Like

You are welcome. I'm glad it is working.

Regards,
Per

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.