Skip to content

{runtime.os} not being substituted in upload commandline for Sony SPRESENSE board #1198

Closed
@mdwelsh

Description

@mdwelsh

Bug Report

I am unable to upload a sketch for the Sony SPRESENSE board on MacOS X. The error message suggests that arduino-cli is not properly translating {runtime.os} to macosx when it constructs the flash_writer command line.

This is with a trivial "Blink" sketch.

Current behavior

$ arduino-cli upload -p /dev/cu.SLAB_USBtoUART --fqbn SPRESENSE:spresense:spresense Blink -v

Waiting for upload port...
"/Users/mdw/Library/Arduino15/packages/SPRESENSE/tools/spresense-tools/2.0.2/flash_writer/{runtime.os}/flash_writer" -s -c "/dev/cu.SLAB_USBtoUART"  -d -n "/var/folders/bw/pw636xj977n1k9367knvlml80000gn/T/arduino-sketch-69767DD007917B413367753F903A19C4/Blink.ino.spk"
Error during Upload: uploading error: cannot execute upload tool: fork/exec /Users/mdw/Library/Arduino15/packages/SPRESENSE/tools/spresense-tools/2.0.2/flash_writer/{runtime.os}/flash_writer: no such file or directory

Expected behavior

The flash_writer program is found in:

/Users/mdw/Library/Arduino15/packages/SPRESENSE/tools/spresense-tools/2.0.2/flash_writer/macosx/flash_writer

That is, replacing {runtime.os} with macosx in the command line should do the trick. I am not sure why this is not happening automatically.

Environment

  • CLI version (output of arduino-cli version): arduino-cli alpha Version: 0.16.0 Commit: c977a23 Date:

  • OS and platform: MacOS X 10.14.6 on Macbook Pro 2018, with Sony SPRESENSE

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions