Hi,
I created in C++ a program for Pi Pico. I build it and have the .uf2. As Arduino RP2040 Connect is based on the same MCU, is it possible to flash Nano RP2040 with this .uf2 file?
Did you build it outside the Arduino IDE ?
It will run, but pins have changed. You might no longer be able to upload a new sketch with the Arduino IDE. To use the pins and the components on the board, you need the Arduino IDE.
If was he who created the program - so you should have a source code.
The most correct way would be to rebuild the firmware from the source for the desired board
I built it outside Arduino IDE. I used Visual Studio Code. It is based on official examples from Raspberry, is using it's cmake files, libraries etc. I can update the pins, but how to build this code for Arduino Nano RP2040?
In case someone would be interested, here is the solution.
- Write code using Pico libraries, just make sure to adapt pins to Arduino.
- Built it just like for Pico. Then copy .uf2 file to Nano RP2040. To do this, you need to trigger bootloader mode on Nano: place a jumper wire between the REC and GND pins on the board, then press & release the reset button, remove the jumper. Nano should appear as mass storage "RPI-RP2". This is the place when it goes exactly the same as for Pico - drag and drop the .uf2 file to that mass storage.
After that operation you can still use Arduino IDE and upload sketch to Nano RP2040 if you wish.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.