Skip to content

Commit 5f1ab3b

Browse files
committed
Add 'use_menu_baud' and 'baud' parameters to boards.txt
1 parent b71a283 commit 5f1ab3b

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

boards.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ amap3blackboard.build.libs=
3535
amap3blackboard.build.extra_flags=-DPART_apollo3 -DAM_PACKAGE_BGA -DAM_PART_APOLLO3
3636
amap3blackboard.build.ldscript={build.variant.path}/linker_scripts/gcc/flash_with_bootloader.ld
3737
amap3blackboard.upload.maximum_size=960000
38+
amap3blackboard.upload.use_menu_baud = 0
39+
amap3blackboard.upload.baud=115200
3840

3941
###############################################################
4042

@@ -53,6 +55,8 @@ amap3nano.build.libs=
5355
amap3nano.build.extra_flags=-DPART_apollo3 -DAM_PACKAGE_BGA -DAM_PART_APOLLO3
5456
amap3nano.build.ldscript={build.variant.path}/linker_scripts/gcc/flash_with_bootloader.ld
5557
amap3nano.upload.maximum_size=960000
58+
amap3nano.upload.use_menu_baud = 0
59+
amap3nano.upload.baud=115200
5660

5761
###############################################################
5862

@@ -71,6 +75,8 @@ amap3mega.build.libs=
7175
amap3mega.build.extra_flags=-DPART_apollo3 -DAM_PACKAGE_BGA -DAM_PART_APOLLO3
7276
amap3mega.build.ldscript={build.variant.path}/linker_scripts/gcc/flash_with_bootloader.ld
7377
amap3mega.upload.maximum_size=960000
78+
amap3mega.upload.use_menu_baud = 0
79+
amap3mega.upload.baud=115200
7480

7581
###############################################################
7682

@@ -89,6 +95,8 @@ artemis.build.libs=
8995
artemis.build.extra_flags=-DPART_apollo3 -DAM_PACKAGE_BGA -DAM_PART_APOLLO3
9096
artemis.build.ldscript={build.variant.path}/linker_scripts/gcc/flash_with_bootloader.ld
9197
artemis.upload.maximum_size=960000
98+
artemis.upload.use_menu_baud = 0
99+
artemis.upload.baud=115200
92100

93101
###############################################################
94102

@@ -106,6 +114,8 @@ edge.build.includes=-I{build.variant.path}/bsp -I{build.variant.path}/config
106114
edge.build.libs=
107115
edge.build.extra_flags=-DPART_apollo3 -DAM_PACKAGE_BGA -DAM_PART_APOLLO3
108116
edge.build.ldscript={build.variant.path}/linker_scripts/gcc/flash_with_bootloader.ld
117+
edge.upload.use_menu_baud = 0
118+
edge.upload.baud=921600
109119

110120
###############################################################
111121

platform.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,15 @@ recipe.preproc.macros="{compiler.path}/{compiler.cmd.cpp}" {compiler.flags.cpp}
127127
# Host-specific definitions for upload tool
128128
# Default host
129129
tools.artemis_bin2board.pgm={runtime.platform.path}/tools/apollo3_scripts/sparkfun/artemis/macosx/artemis_bin_to_board/artemis_bin_to_board
130-
tools.artemis_bin2board.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}
130+
tools.artemis_bin2board.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 {upload.baud} -port "{serial.port}" -r 1 {upload.verbose}
131131

132132
# MacOSX
133133
tools.artemis_bin2board.pgm.macosx={runtime.platform.path}/tools/apollo3_scripts/sparkfun/artemis/macosx/artemis_bin_to_board/artemis_bin_to_board
134-
tools.artemis_bin2board.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}
134+
tools.artemis_bin2board.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 {upload.baud} -port "{serial.port}" -r 1 {upload.verbose}
135135

136136
# Windows
137137
tools.artemis_bin2board.pgm.windows="{runtime.platform.path}/tools/apollo3_scripts/sparkfun/artemis/windows/artemis_bin_to_board/artemis_bin_to_board.exe"
138-
tools.artemis_bin2board.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}
138+
tools.artemis_bin2board.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 {upload.baud} -port "{serial.port}" -r 1 {upload.verbose}
139139

140140
# Additional Loader Parameters
141141
tools.artemis_bin2board.upload.protocol=ap3

0 commit comments

Comments
 (0)