Skip to content

Commit 10d1056

Browse files
author
Brian Baltz
committed
Verify BLE FW version on every sketch upload
Signed-off-by: Brian Baltz <[email protected]>
1 parent 431fb6f commit 10d1056

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

platform.txt

+6-1
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,19 @@ recipe.output.save_file={build.project_name}.{build.variant}.hex
9191
recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
9292
recipe.size.regex=^(?:text|ctors|rodata|datas)\s+([0-9]+).*
9393

94+
# BLE firmware check
95+
# -------------------
96+
tools.arduino101load.ble.fw.string="ATP1BLE000-1541C5635"
97+
tools.arduino101load.ble.fw.position=141312
98+
9499
# Arc Uploader/Programmers tools
95100
# -------------------
96101
tools.arduino101load.cmd.path={runtime.tools.arduino101load.path}/arduino101load/arduino101load
97102

98103
tools.arduino101load.upload.params.verbose=verbose
99104
tools.arduino101load.upload.params.quiet=quiet
100105

101-
tools.arduino101load.upload.pattern="{cmd.path}" "{runtime.tools.arduino101load.path}/x86/bin" {build.path}/{build.project_name}.bin {serial.port} "{upload.verbose}"
106+
tools.arduino101load.upload.pattern="{cmd.path}" "{runtime.tools.arduino101load.path}/x86/bin" {build.path}/{build.project_name}.bin {serial.port} "{upload.verbose}" {ble.fw.string} {ble.fw.position}
102107

103108
# This is needed to avoid an error on unexistent fields
104109
tools.arduino101load.erase.params.verbose=

0 commit comments

Comments
 (0)