Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Location of boards.txt for an Arduino DUE (SAM board)

I use the 1.6.7 Arduino IDE and I’ve installed the "Arduino SAM Boards (32-bits ARM Cortex-M3)" item for my DUE board, and it works fine.

However, I would like to tune some build parameters in my boards.txt file. Problem: I do not have a INSTALL/hardware/arduino/sam folder! I do have the traditional INSTALL/hardware/arduino/avr folder, but in this one boards.txt does not contain the settings for the DUE.

  • Where can the settings of the DUE be found?
  • Should I create myself a new boards.txt file in a new sam/ folder? What should be its default content?
like image 878
Eric Leibenguth Avatar asked Mar 04 '16 15:03

Eric Leibenguth


People also ask

How do I install the Arduino Sam board?

Type in "due" in the search field, and install the Arduino SAM Boards (32-bits ARM Cortex-M3) core. List of cores. This process may take some time, and you may need to accept the installation window that comes up (depending on your operative system). When it is finished, it should say "INSTALLED" under the title.

Where is the boards txt file?

The boards.txt file is in Arduino15\packages\arduino\hardware\sam\1.6.6. Show activity on this post. It seems location changed at least in Linux, Eric Leibenguth answer still directs you to an arduino related folder but no boards.txt there.

Where is the sketchbook in Arduino IDE?

You can find the location of the sketchbook folder at File > Preferences > Sketchbook location. Restart the Arduino IDE if it’s running. You should now see the “brice3010 Arduino Pro or Pro Mini” option in the Tools > Board menu.

How to install official Arduino cores in IDE?

Official Arduino cores can be conveniently installed with the Boards Manager tool. In the menu bar, select Tools > Board > Boards Manager. In IDE 2.x you can also access it by clicking the button in the left-most sidebar.


2 Answers

The mystery folder can be found in the Arduino15 directory, which is located under the home folder (not Arduino's install folder; that would be too easy). You can see the path in the Preferences (see below). The boards.txt file is in Arduino15\packages\arduino\hardware\sam\1.6.6.

enter image description here

like image 125
Eric Leibenguth Avatar answered Oct 27 '22 21:10

Eric Leibenguth


It seems location changed at least in Linux, Eric Leibenguth answer still directs you to an arduino related folder but no boards.txt there.

Mine was at: /usr/share/arduino/hardware/archlinux-arduino/avr/boards.txt

you can find yours by enabling "Show verbose output during:" "compilation" in preferences and then in the logs it will show somewhere at the beginning something like:

Using core 'arduino' from platform in folder: /usr/share/arduino/hardware/archlinux-arduino/avr

look around that path to find yours

like image 38
LuisF Avatar answered Oct 27 '22 19:10

LuisF