Skip to content
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

Arduino IDE 1.6.7 plus custom boards #405

Open
linuxdevel opened this issue Jan 14, 2016 · 3 comments
Open

Arduino IDE 1.6.7 plus custom boards #405

linuxdevel opened this issue Jan 14, 2016 · 3 comments
Labels

Comments

@linuxdevel
Copy link

Hi
Nice work with the makefile for arduino!

If using the Arduino-Makefile with the above mentioned IDE plus adding an extra board using the "board admin" GUI, the makefile does not set correct include paths.

The problem (?) is that the IDE does not add new boards to the default boards.txt file, instead it is located as shown below for the Blend Micro board:

username@sekenani:/opt/home/username/.arduino15/packages/RedBearLab/hardware/avr/1.0.2> pwd
/opt/home/username/.arduino15/packages/RedBearLab/hardware/avr/1.0.2
username@sekenani:/opt/home/username/.arduino15/packages/RedBearLab/hardware/avr/1.0.2> ls
boards.txt bootloaders platform.txt variants

If I now set the BOARDS_TXT to point to the new location, the makefile failes to set correct include paths.
If I dont set the BOARDS_TXT, the BOARD_TAG, e.g: blendmicro8 is not found since the board configuration is not in the arduinofolder/hardware/arduino/avr folder.

Arne

@sej7278
Copy link
Collaborator

sej7278 commented Jan 14, 2016

yes boards mangler puts the boards in the wrong place. if you put them in ~/sketchbook/hardware then it works fine, for example the adafruit boards package:

Makefile:

ARDUINO_DIR = /opt/arduino-1.6.7
ALTERNATE_CORE = adafruit
BOARD_TAG = trinket3
include /usr/share/arduino/Arduino.mk

~/sketchbook directory structure:

hardware/
├── adafruit
│   └── avr
│       ├── boards.txt
│       ├── bootloaders
│       │   ├── caterina
│       │   └── optiboot
│       ├── platform.txt
│       └── variants
│           ├── bluefruitmicro
│           ├── flora
│           └── tiny8

@linuxdevel
Copy link
Author

Does board mangler put its config in any of the config files in ./arduino15 ? If so maybe it has location for boards that are downloaded - which can be used in the Makefile? :)

Arne

@sej7278
Copy link
Collaborator

sej7278 commented Jan 14, 2016

as i recall it puts various files in ~/.arduino15/staging, potentially you could plug those paths into BOARDS_TXT, ALTERNATE_CORE_PATH etc. see also #400

@sej7278 sej7278 added the 1.6.x label Oct 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants