Skip to content

Commit fb9a78d

Browse files
author
Jim Lindblom
committed
Updating SAMD platform to work with newer/any version of bossac
1 parent 9a2fcd2 commit fb9a78d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

sparkfun/samd/platform.txt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5---3rd-party-Hardware-specification
2121

2222
name=SparkFun SAMD (32-bits ARM Cortex-M0+) Boards
23-
version=1.6.1
23+
version=1.2.2
2424

2525
# Compile variables
2626
# -----------------
@@ -86,9 +86,9 @@ recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -D
8686
recipe.S.o.pattern="{compiler.path}{compiler.S.cmd}" {compiler.S.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.S.extra_flags} {build.extra_flags} {compiler.arm.cmsis.path} {includes} "{source_file}" -o "{object_file}"
8787

8888
## Create archives
89-
recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}"
90-
#Below archive recipe clears a warning in Arduino, but tends to break compilation on Mac
91-
#recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}"
89+
# archive_file_path is needed for backwards compatibility with IDE 1.6.5 or older, IDE 1.6.6 or newer overrides this value
90+
archive_file_path={build.path}/{archive_file}
91+
recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}"
9292

9393
## Combine gc-sections, archives, and objects
9494
recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" "-L{build.path}" {compiler.c.elf.flags} {compiler.c.elf.extra_flags} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" --specs=nano.specs --specs=nosys.specs {compiler.ldflags} -o "{build.path}/{build.project_name}.elf" {object_files} -Wl,--start-group -lm "{build.path}/{archive_file}" -Wl,--end-group
@@ -111,7 +111,7 @@ recipe.size.regex=\.text\s+([0-9]+).*
111111
#
112112
# BOSSA
113113
#
114-
tools.bossac.path={runtime.tools.bossac-1.6.1-arduino.path}
114+
tools.bossac.path={runtime.tools.bossac.path}
115115
tools.bossac.cmd=bossac
116116
tools.bossac.cmd.windows=bossac.exe
117117

@@ -142,4 +142,3 @@ tools.openocd.erase.pattern=
142142
tools.openocd.bootloader.params.verbose=-d2
143143
tools.openocd.bootloader.params.quiet=-d0
144144
tools.openocd.bootloader.pattern="{path}/{cmd}" {bootloader.verbose} -s "{path}/share/openocd/scripts/" -f "{runtime.platform.path}/variants/{build.variant}/{build.openocdscript}" -c "telnet_port disabled; init; halt; at91samd bootloader 0; program {{{runtime.platform.path}/bootloaders/{bootloader.file}}} verify reset; shutdown"
145-

0 commit comments

Comments
 (0)