I have the nano rp2040 connect. I updated it to use MicroPython by just dropping the uf2 file device when attached in bootloader mode (shows up as RPI-RP2).
I tried MicroPython but like C++ better.
Now i want to go back to cpp (C++). None of the tools work to update the firmware... IDE, Online etc they all reload the nano in bootloader mode but then something after that fails (the device has shown up as RPI-RP2)
(I also have an UNO R4WiFi that i have connected and using fine with IDE 2.0.0)
I believe all i need is the original firmware uf2 file and i can simply drop it on the RPI-RP2 device and it will replace the current MicroPython
Could someone just put the NANO RP2040 Connect firmware UF2 file on the site ready for download please ?
Thanks,
Simon
Failure from IDE 2:
Error: opening port at 1200bps Error: Error executing /tmp/.mount_arduint0d56L/resources/app/lib/backend/resources/arduino-fwuploader firmware flash --fqbn arduino:mbed_nano:nanorp2040connect --address /dev/ttyACM0 --module NINA@1.5.0: Error: exit status 1
Error: opening port at 1200bps
Error: opening port at 1200bps
Error: opening port at 1200bps
Error: opening port at 1200bps
Error: opening port at 1200bps
Error: opening port at 1200bps
Error: opening port at 1200bps
Error: opening port at 1200bps
at ChildProcess.<anonymous> (/tmp/.mount_arduint0d56L/resources/app/lib/backend/main.js:2:603068)
at ChildProcess.emit (node:events:513:28)
at ChildProcess._handle.onexit (node:internal/child_process:291:12)
2024-01-06T02:16:46.786Z daemon INFO time="2024-01-06T13:16:46+11:00" level=info msg="from discovery builtin:serial-discovery received message type: add, port: /dev/ttyACM0"
2024-01-06T02:16:46.786Z discovery-log INFO {"eventType":"add","port":{"matchingBoardsList":[{"name":"Arduino Nano RP2040 Connect","fqbn":"arduino:mbed_nano:nanorp2040connect","isHidden":false}],"port":{"address":"/dev/ttyACM0","label":"/dev/ttyACM0","protocol":"serial","protocolLabel":"Serial Port (USB)","propertiesMap":[["pid","0x025e"],["serialNumber","5015930068a87e1c"],["vid","0x2341"]],"hardwareId":"5015930068a87e1c"}},"error":""}
I have not used the Nano RP2040 but I have used the Raspi Pi Pico, and it is not necessary to reinstall anything, just connect and upload the code.
Sometimes it is necessary to press the button when connecting but nothing more.
On the contrary, if you want to use micropython again, then yes, you must reupload the interpreter.
The Arduino IDE V2 will not upload a (simple empty setup and loop) sketch. It prints out:
Sketch uses 90139 bytes (0%) of program storage space. Maximum is 16777216 bytes.
Global variables use 43488 bytes (16%) of dynamic memory, leaving 226848 bytes for local variables. Maximum is 270336 bytes.
.....................
Failed uploading: uploading error: exit status 1
ive tried it after reset. This IDE works fine with the UNO R4 WiFi board.
ive also tried the 1.8.19 IDE and the Cloud IDE.
They all show similar errors to the V2 IDE ... all IDEs initially recognise and correctly identify the board and port
I have found the solution. Your reply helped greatly because you rightly pointed out that i did not need any UF2 file. The underlying problem is that the RP2040 board does not get installed properly by the arduino software. After installing the board in the ide a shell script has to be manually run in order for the ide to be able to write to the board. A total explanation where this script is and of running it can be found in this you tube video: https://www.youtube.com/watch?v=Q6j0TMrnD4E