Skip to content

flash_writer path is not properly templated when using arduino-cli on Linux #127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
guberti opened this issue Aug 26, 2021 · 2 comments
Closed

Comments

@guberti
Copy link

guberti commented Aug 26, 2021

Issue

When uploading Spresense Arduino projects from a machine running Ubuntu 20.04 with arduino-cli, I get the following error:

guberti@microtvm:~/blink$ arduino-cli upload --fqbn SPRESENSE:spresense:spresense --port /dev/ttyUSB0
Error during Upload: uploading error: cannot execute upload tool: fork/exec /home/vagrant/.arduino15/pack
ages/SPRESENSE/tools/spresense-tools/2.2.1/flash_writer/{runtime.os}/flash_writer: no such file or direct
ory

Workaround

This path (tools.spresense-tools.cmd.path.linux) is defined in platform.txt as seen below:

# ------------------------------
tools.spresense-tools.path={runtime.tools.spresense-tools.path}
tools.spresense-tools.cmd.path={path}/flash_writer/{runtime.os}/flash_writer
tools.spresense-tools.cmd.path.windows={path}/flash_writer/{runtime.os}/flash_writer.exe
tools.spresense-tools.cmd.path.linux={path}/flash_writer/{runtime.os}/flash_writer

This issue can be fixed by changing the path to:

tools.spresense-tools.cmd.path.linux={path}/flash_writer/linux/flash_writer
@SPRESENSE
Copy link
Collaborator

Hi @guberti
Thank you for reporting issue.
This is a known issue with arduino-cli, and it would be resolved at arduino/arduino-cli#1312.
Let's wait for the next arduino-cli release together.

@guberti
Copy link
Author

guberti commented Aug 27, 2021

Thank you, arduino/arduino-cli#1312 seems like the culprit. I'm closing this issue, as the bug is not in this repo.

@guberti guberti closed this as completed Aug 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants