Skip to content

Installing boards from the command line - howto ? #6165

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
udoklein opened this issue Apr 8, 2017 · 6 comments
Closed

Installing boards from the command line - howto ? #6165

udoklein opened this issue Apr 8, 2017 · 6 comments

Comments

@udoklein
Copy link

udoklein commented Apr 8, 2017

Today I added Travis testing to my library project (https://github.com/udoklein/dcf77/blob/travis/.travis.yml), https://travis-ci.org/udoklein/dcf77. I also want to include ARM /Arduino Due support. However the ARM boards are not predefined by the IDE. I found an article for including ESP8266 https://tzapu.com/automate-arduino-ide-esp8266-build-testing-travisci/. So the IDE does provide a command line interface to add board support from the command line like so

arduino --install-boards ...

Where can I find the proper parameters for this option to have Arduino Due available and how to I specifiy the Due as a compile target from the command line?

@udoklein
Copy link
Author

udoklein commented Apr 8, 2017

I also asked this in the Arduino Forum here: http://forum.arduino.cc/index.php?topic=468993

@aido
Copy link

aido commented Apr 8, 2017

Hi Udo,

The following command will install the Arduino Due board:

./arduino --install-boards arduino:sam

and this command will build a sketch for the Arduino Due board:

./arduino --verbose --verify --board arduino:sam:arduino_due_x <sketch name>

@udoklein
Copy link
Author

udoklein commented Apr 9, 2017

Great. This raises the next question though. How / where do I learn these parameters for other boards?

@aido
Copy link

aido commented Apr 9, 2017

Hi Udo,

The board names are in a boards.txt file which on Linux can be found in the arduino install directory at:
./hardware/arduino/avr/boards.txt
or in the case of the manually installed SAM boards at:
~/.arduino15/packages/arduino/hardware/sam/<version>/boards.txt

On Windows this file is in:
%LOCALAPPDATA%\Arduino15\packages\arduino\hardware

@udoklein
Copy link
Author

udoklein commented Apr 9, 2017

Thanks!

@luisangelcg007
Copy link

Great. This raises the next question though. How / where do I learn these parameters for other boards?

Here you can learn more about cmd command for arduino:
https://github.com/arduino/Arduino/blob/master/build/shared/manpage.adoc

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

3 participants