Nano RP2040 Connect no firmware update possible

Hello,
i have a Nano RP2040 Connect and want to update the firmware from version 1.4.5 to 1.4.8
I already read several instructions but they don't work. Using arduino ide 2 the process starts but after a while it ends without a message or error. Why I check the firmware version with FirmwareUpdater sketch it still shows version 1.4.5
Trying the arduino-fwuploader tool doesn't work either. There is always the following error : "error during sketch flashing: exit status 1". (I put the nano in flash mode by connecting pin GND and REC). I can upload sketches via the ide and they work so I dont't think the communication is the problem.
Does anyone has a clue what I could do to update the firmware? I'm grateful for every hint

1 Like

Welcome to the forum.

I know my answer will not help solve your problem but here we go. Do you have a good reason why you want to update the firmware? Some example sketches tell you the firmware is out of date and should be updated but most of the time that is not necessary.

Thanks for your answer.
Yes, I think I have a good reason to update. I'd like to use Micropython and it is said that Firmware 1.4.8 is necessary for that.

I'm in the same boat.

I have tried all 3 update options, using 3 computers (2 linux + 1 Mac), and several cables, with umpteen board resets, entirely without success.

The clue to the problem seems to be that the board disconnects as soon as the update starts, and hence it can't upload the new firmware. With IOT cloud it reports lost connection, with IDE2 the serial monitor shows the link drop, while using the arduino-fwuploader tool I receive the same "error during sketch flashing: exit status 1" as you report.

I've read elsewhere that there may be ab option to manually copy an image FirmwareUpdater.nanorp2040connect.ino.elf.uf2, but I can't find that file.

It is here:
https://github.com/arduino/arduino-fwuploader/blob/main/firmwares/loader/arduino.mbed_nano.nanorp2040connect/loader.elf
but this needs to be converted to UF2 format. You can use the elf2uf2 tool for that. It is included with the "Arduino Mbed Nano Boards" platform you installed to add support for the Nano RP2040 Connect to your Arduino IDE:

~/.arduino15/packages/arduino/tools/rp2040tools/1.0.2/elf2uf2
$ ./elf2uf2 --help
Usage: elf2uf2 (-v) <input ELF file> <output UF2 file>

Note that loader.elf is only the sketch that runs on the primary RP2040 microcontroller on the Nano RP2040 Connect and provides the bridge between the firmware updater on your computer and the ESP32 microcontroller in the u-blox NINA-W102 WiFi/BLE radio module on the Nano RP2040 Connect. Once you have the "loader" on the RP2040, you will still need to use the firmware updater tool (your choice of the Arduino IoT Cloud one, the one in the Arduino IDEs, or the standalone command line tool) to flash the firmware to the ESP32 in the u-blox NINA-W102 WiFi/BLE radio module.

I finally figured out how to get the update process work. I had to update version by version. Which means from 1.4.5 to 1.4.6 to 1.4.7 to 1.4.8. At first I only tried to update from 1.4.5 directly to 1.4.8. Maybe that helps...

Thanks for taking the time to share your solution @mydrone82!

Oh dear

I tried to update version by version without luck. I ended up following these instructions: GitHub - khoih-prog/WiFiNINA_Generic: Enables WiFiNINA network connection (local and Internet) for SAM DUE, SAMD21, SAMD51, Teensy, AVR Mega, STM32, RP2040-based boards, etc. in addition to Arduino MKR WiFi 1010, Arduino MKR VIDOR 4000, Arduino UNO WiFi Rev.2 , Nano 33 IoT, Nano_RP2040_Connect. Now with fix of severe limitation to permit sending much larger data than total 4K

It still didn't work until I turned on detailed logging and saw that the IDE tries to upload the firmware update sketch and errors out. I looked in the temp directory and found an UF2 file that I manually pasted to the RPI R2 drive. It rebooted and I was able to upload the new driver.

2 Likes

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