Skip to content

Commit aeeacc3

Browse files
committed
Set up default host upload tools
Currently the default uload tools use MacOSX binary. Todo: create a Linux specific executable to call from linux.
1 parent e16a9b9 commit aeeacc3

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

platform.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,19 +124,20 @@ recipe.size.regex=\.text\s+([0-9]+).*
124124
preproc.macros.flags=-w -x c++ -E -CC
125125
recipe.preproc.macros="{compiler.path}/{compiler.cmd.cpp}" {compiler.flags.cpp} {preproc.macros.flags} -mcpu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.extra_flags.cpp} {build.extra_flags} {includes.all} "{source_file}" -o "{preprocessed_file_path}"
126126

127-
# # temporary: for now specify the path to your installation of Python3 here
128-
# tools.ap3Loader.pgm=/usr/local/bin/python3
129-
# tools.ap3Loader.scr={runtime.platform.path}/tools/apollo3_scripts/sparkfun/artemis/artemis_bin_to_board.py
130-
# tools.ap3Loader.args=--bin "{build.path}/{build.project_name}.bin" --load-address-blob 0x20000 --magic-num 0xCB -o {build.path}/{build.project_name} --version 0x0 --load-address-wired 0xC000 -i 6 --options 0x1 -b 921600 -port "{serial.port}" -r 1 {upload.verbose}
131-
132-
127+
# Host-specific definitions for upload tool
128+
# Default host
129+
tools.ap3Loader.pgm={runtime.platform.path}/tools/apollo3_scripts/sparkfun/artemis/macosx/artemis_bin_to_board/artemis_bin_to_board
130+
tools.ap3Loader.args=--bin "{build.path}/{build.project_name}.bin" --load-address-blob 0x20000 --magic-num 0xCB -o {build.path}/{build.project_name} --version 0x0 --load-address-wired 0xC000 -i 6 --options 0x1 -b 921600 -port "{serial.port}" -r 1 {upload.verbose}
133131

132+
# MacOSX
134133
tools.ap3Loader.pgm.macosx={runtime.platform.path}/tools/apollo3_scripts/sparkfun/artemis/macosx/artemis_bin_to_board/artemis_bin_to_board
135134
tools.ap3Loader.args.macosx=--bin "{build.path}/{build.project_name}.bin" --load-address-blob 0x20000 --magic-num 0xCB -o {build.path}/{build.project_name} --version 0x0 --load-address-wired 0xC000 -i 6 --options 0x1 -b 921600 -port "{serial.port}" -r 1 {upload.verbose}
136135

136+
# Windows
137137
tools.ap3Loader.pgm.windows="{runtime.platform.path}/tools/apollo3_scripts/sparkfun/artemis/windows/artemis_bin_to_board/artemis_bin_to_board.exe"
138138
tools.ap3Loader.args.windows=--bin "{build.path}/{build.project_name}.bin" --load-address-blob 0x20000 --magic-num 0xCB -o {build.path}/{build.project_name} --version 0x0 --load-address-wired 0xC000 -i 6 --options 0x1 -b 921600 -port "{serial.port}" -r 1 {upload.verbose}
139139

140+
# Additional Loader Parameters
140141
tools.ap3Loader.upload.protocol=ap3
141142
tools.ap3Loader.upload.params.verbose=-v
142143
tools.ap3Loader.upload.params.quiet=

0 commit comments

Comments
 (0)