Skip to content

Commit 0ca8de1

Browse files
committed
Fix OpenOCD bootloader flashing.
Former-commit-id: aebcb65
1 parent a43c064 commit 0ca8de1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

platform.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,11 @@ tools.openocd.program.pattern="{path}/{cmd}" {program.verbose} -f interface/{pro
166166

167167
tools.openocd.erase.params.verbose=-d2
168168
tools.openocd.erase.params.quiet=-d0
169-
tools.openocd.erase.pattern="{path}/{cmd}" {erase.verbose} -f interface/{program.protocol}.cfg -c "{program.setup_command}" -f target/{upload.target}.cfg -c "init; halt; {upload.target} mass_erase; reset; shutdown;"
169+
tools.openocd.erase.pattern="{path}/{cmd}" {bootloader.verbose} -f interface/{program.protocol}.cfg -c "{program.setup_command}" -f target/{upload.target}.cfg -c "init; halt; nrf5 mass_erase; reset; shutdown;"
170170

171171
tools.openocd.bootloader.params.verbose=-d2
172172
tools.openocd.bootloader.params.quiet=-d0
173-
tools.openocd.bootloader.pattern="{path}/{cmd}" {bootloader.verbose} -f interface/{program.protocol}.cfg -c "{program.setup_command}" -f target/{upload.target}.cfg -c "init; halt; program {runtime.platform.path}/{build.bootloader.file} verify reset; shutdown;"
174-
173+
tools.openocd.bootloader.pattern="{path}/{cmd}" {bootloader.verbose} -f interface/{program.protocol}.cfg -c "{program.setup_command}" -f target/{upload.target}.cfg -c "init; halt; program {{runtime.platform.path}/{build.bootloader.file}} reset; shutdown;"
175174
#
176175
# blackmagic probe upload
177176
#

0 commit comments

Comments
 (0)