diff --git a/BUILD.txt b/BUILD.txt index f8e83ba..17c7c15 100644 --- a/BUILD.txt +++ b/BUILD.txt @@ -53,8 +53,9 @@ Likely on Linux As with Arduino 1.6.7 with SAM 1.6.6, see below. -For Arduino 1.6.7 with SAM 1.6.6 +For Arduino 1.6.7 with SAM 1.6.6 -------------------------------- +(checked OK on Arduino 1.6.11 and SAM 1.6.9) 1. Go to the where the platform.txt file is located. On my Windows machine it's in: @@ -69,14 +70,19 @@ On Linux, it's located in my home directory, downloaded and extracted from Ardui /home/m1geo/arduino-1.6.7/hardware/arduino/sam - I (M1GEO) found it was necessary to download SAM-1.6.6 outside of the Arduino IDE, and manually extract the files. +or + +/home/m1geo/.arduino15/packages/arduino/hardware/sam/1.6.9 (if you let the board/library manager install SAM) + + +I (M1GEO) found it was necessary to download SAM-1.6.6 outside of the Arduino IDE, and manually extract the files. The Board Manager didn't seem to install the SAM files correctly. Here's how I did it: a) wget http://downloads.arduino.cc/cores/sam-1.6.6.tar.bz2 -O /tmp/sam-1.6.6.tar.bz2 (download and save in /tmp) b) cd arduino-1.6.7/hardware/arduino/ (Arduino root, here, in my home directory) c) tar xvfj /tmp/sam-1.6.6.tar.bz2 -2. You'll need to open the file in a text editor and find the line: +2. You'll need to open the file (platform.txt) in a text editor and find the line: ## Combine gc-sections, archives, and objects recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" -mcpu={build.mcu} -mthumb {compiler.c.elf.flags} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--start-group "{build.path}/core/syscalls_sam3.c.o" {object_files} "{build.variant.path}/{build.variant_system_lib}" "{build.path}/{archive_file}" -Wl,--end-group -lm -gcc