Skip to content

arduino-cli upload not working but works in Arduino IDE #104

Closed
@afoxinsocks

Description

@afoxinsocks

Subject of the issue

Attempting to use the latest 0.7.1 arduino-cli on macOS with a SparkFun RedBoard Artemis Nano fails after detecting bootloader.

Your workbench

  • What platform are you using?
    macOS 10.14

  • What version of the device are you using? Is there a firmware version?
    SparkFun RedBoard Artemis Nano with SVL Bootloader 5 programmed from the 1.0.23 library.

  • How is the device wired to your platform?
    USB C cable

  • How is everything being powered?

  • Are there any additional details that may help us help you?
    Uploading works fine in the Arduino IDE

Steps to reproduce

Tell us how to reproduce this issue. Please post stripped down example code demonstrating your issue to a gist.

arduino-cli compile -u -t -b SparkFun:apollo3:amap3nano -p /dev/cu.wchusbserial1420 <sketch>

Expected behaviour

The Arduino IDE functions correctly and outputs the following:

Sketch uses 14284 bytes (1%) of program storage space. Maximum is 960000 bytes.


Artemis SVL Bootloader
Got SVL Bootloader Version: 5
[##################################################]Upload complete

Actual behaviour

Attempting to do the same thing with arduino-cli from a Terminal window outputs the following:

Sketch uses 14284 bytes (1%) of program storage space. Maximum is 960000 bytes.


Artemis SVL Bootloader
Got SVL Bootloader Version: 5
/dev/cu.wchusbserial1420 is currently open. Please close any other terminal programs that may be using /dev/cu.wchusbserial1420 and try again.

Note: Closing the Arduino IDE before trying arduino-cli does not solve the problem, nor does rebooting. Sudo also doesn't help.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions