Skip to content

Uploading via CLI lacks runtime.platform.path #6463

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
Sorunome opened this issue Jul 6, 2017 · 4 comments
Closed

Uploading via CLI lacks runtime.platform.path #6463

Sorunome opened this issue Jul 6, 2017 · 4 comments
Labels
Component: CLI The Arduino IDE's command line interface

Comments

@Sorunome
Copy link

Sorunome commented Jul 6, 2017

When uploading via CLI it lacks runtime.platform.path

e.g.

$ arduino GraphicTest/GraphicTest.ino -v --upload --useprogrammer
<compiling output>
Uploading...
/home/sorunome/.arduino15/packages/arduino/tools/openocd/0.9.0-arduino6-static/bin/openocd -d2 -s /home/sorunome/.arduino15/packages/arduino/tools/openocd/0.9.0-arduino6-static/share/openocd/scripts/ -f {runtime.platform.path}/variants/arduino_zero/openocd_scripts/arduino_zero.cfg -c telnet_port disabled; program {{/tmp/arduino_build_20957/GraphicTest.ino.elf}} verify reset; shutdown 
An error occurred while uploading the sketch
Open On-Chip Debugger 0.9.0-g932ec70 (2017-02-15-11:32)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
debug_level: 2
Runtime Error: embedded:startup.tcl:60: Can't find {runtime.platform.path}/variants/arduino_zero/openocd_scripts/arduino_zero.cfg
in procedure 'script' 
at file "embedded:startup.tcl", line 60

running arduino --get-prefs doesn't show it, either

EDIT: Using version 1.8.3 on archlinux

@per1234 per1234 added the Component: CLI The Arduino IDE's command line interface label Jul 6, 2017
@cmaglie
Copy link
Member

cmaglie commented Jul 14, 2017

You must specify a board with the --board option. The runtime.platform.path depends on the core used that is known only after a board is selected.
For example:

./arduino --board arduino:avr:uno  --get-pref runtime.platform.path

on my machine gives:

/home/cmaglie/Code/arduino/build/linux/work/hardware/arduino/avr

that is where the AVR core is installed.

@Sorunome
Copy link
Author

Sorunome commented Jul 14, 2017 via email

@cmaglie
Copy link
Member

cmaglie commented Jul 14, 2017

Can you paste the command line you use to upload/verify without the --board option?

@Sorunome
Copy link
Author

Sorunome commented Jul 14, 2017 via email

cmaglie added a commit to cmaglie/Arduino that referenced this issue Jul 18, 2017
This happens when the CLI is runned without the `--board` option.

Fix arduino#6463
cmaglie added a commit that referenced this issue Jul 27, 2017
This happens when the CLI is runned without the `--board` option.

Fix #6463
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: CLI The Arduino IDE's command line interface
Projects
None yet
Development

No branches or pull requests

3 participants