Skip to content

Commit e16a9b9

Browse files
committed
Change AP3Loader tool pattern
Changing this as part of moving to binary-only tools.
1 parent a1adec5 commit e16a9b9

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

platform.txt

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,18 +124,23 @@ 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}
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}
131131

132-
tools.ap3Loader.pgm.windows=
133-
tools.ap3Loader.scr.windows={runtime.platform.path}/tools/apollo3_scripts/sparkfun/artemis/windows/artemis_bin_to_board/artemis_bin_to_board.exe
132+
133+
134+
tools.ap3Loader.pgm.macosx={runtime.platform.path}/tools/apollo3_scripts/sparkfun/artemis/macosx/artemis_bin_to_board/artemis_bin_to_board
135+
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}
136+
137+
tools.ap3Loader.pgm.windows="{runtime.platform.path}/tools/apollo3_scripts/sparkfun/artemis/windows/artemis_bin_to_board/artemis_bin_to_board.exe"
134138
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}
135139

136140
tools.ap3Loader.upload.protocol=ap3
137141
tools.ap3Loader.upload.params.verbose=-v
138142
tools.ap3Loader.upload.params.quiet=
139143

140-
tools.ap3Loader.upload.pattern={pgm} "{scr}" {args}
144+
# Upload tool pattern
145+
tools.ap3Loader.upload.pattern={pgm} {args}
141146

0 commit comments

Comments
 (0)