Skip to content

Sketch flashing exits with status 1 #124

Open
@Limpan

Description

@Limpan

Bug Report

Current behavior

./arduino-fwuploader firmware flash -b arduino:mbed_nano:nanorp2040connect -a /dev/ttyACM0 -m NINA@1.4.8 --retries 2 -v --log-level trace

Flashing of sketch fails with exit status 1.

Expected behavior

I expected to update the firmware to 1.of the WIFI NINA-module on my Arduino Nano RP2040 Connect.

Environment

  • Updater version: arduino-fwuploader Version: 2.1.0 Commit: 144292a Date: 2021-09-30T13:00:05Z
  • OS and platform: Ubuntu 20.04 LTS

Additional context

I have flashed the Arduino board with the Blink sketch.

➜ ./arduino-fwuploader firmware flash -b arduino:mbed_nano:nanorp2040connect -a /dev/ttyACM0 -m NINA@1.4.8 --retries 2 -v --log-level trace
INFO[0000] arduino-fwuploader Version: 2.1.0 Commit: 144292a Date: 2021-09-30T13:00:05Z 
INFO[0000] Checking signature                            index=/tmp/55770067919477794103263350056/index.json signatureFile=/tmp/55770067919477794103263350056/index.json.sig trusted=true
INFO[0000] Checking signature                            index=/tmp/fwuploader/package_index.json signatureFile=/tmp/fwuploader/package_index.json.sig trusted=true
INFO[0000] Checking signature                            index=/tmp/fwuploader/module_firmware_index.json signatureFile=/tmp/fwuploader/module_firmware_index.json.sig trusted=true
DEBU[0000] fqbn: arduino:mbed_nano:nanorp2040connect, address: /dev/ttyACM0 
DEBU[0000] got board: arduino:mbed_nano:nanorp2040connect 
DEBU[0001] upload tool downloaded in /tmp/fwuploader/tools/rp2040tools/1.0.2 
DEBU[0001] module name: NINA, firmware version: 1.4.8   
DEBU[0001] firmware file downloaded in /tmp/fwuploader/firmwares/NINA/1.4.8/NINA-arduino.mbed_nano.nanorp2040connect.bin 
DEBU[0001] loader sketch downloaded in /tmp/fwuploader/sketch/loader.elf 
INFO[0001] Putting board into bootloader mode           
DEBU[0011] uploading with command: "/tmp/fwuploader/tools/rp2040tools/1.0.2/rp2040load" -v -D "/tmp/fwuploader/sketch/loader.elf" 
rp2040load 1.0.1 - compiled with go1.15.8
.....................
error during sketch flashing: exit status 1
ERRO[0022] error during sketch flashing: exit status 1  
INFO[0022] Waiting 1 second before retrying...          
INFO[0023] Retrying upload (1 of 2)                     
INFO[0023] Putting board into bootloader mode           
DEBU[0033] uploading with command: "/tmp/fwuploader/tools/rp2040tools/1.0.2/rp2040load" -v -D "/tmp/fwuploader/sketch/loader.elf" 
rp2040load 1.0.1 - compiled with go1.15.8
.....................
error during sketch flashing: exit status 1
ERRO[0043] error during sketch flashing: exit status 1  
FATA[0043] Operation failed. :-(        

Activity

facchinm

facchinm commented on Jan 10, 2022

@facchinm
Member

Hi @Limpan ,
did you already run the udev script https://github.com/arduino/ArduinoCore-mbed/blob/master/post_install.sh to allow flashing as a normal user?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Sketch flashing exits with status 1 · Issue #124 · arduino/arduino-fwuploader