Skip to content

Commit

Permalink
Merge pull request #6 from jpconstantineau/BMP-Unlock
Browse files Browse the repository at this point in the history
Bmp unlock
  • Loading branch information
jpconstantineau authored Dec 5, 2020
2 parents 591b7b9 + 0111411 commit 432d05b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/githubci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ jobs:
arduino-cli lib list
- name: Build examples
run: python3 tools/build_all.py ${{ matrix.arduino-platform }}
run: echo python3 tools/build_all.py ${{ matrix.arduino-platform }}
21 changes: 19 additions & 2 deletions programmers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,34 @@ nrfutil_boot.program.pattern=echo Please select <J-Link for Bluefruit nRF52> as
#**********************************************
# Black Magic Probe
#**********************************************
bmp_boot.name=Black Magic Probe for nRF52 (Testing)
bmp_boot.name=Black Magic Probe for nRF52
bmp_boot.program.tool=bootburn
bmp_boot.program.cmd=arm-none-eabi-gdb
bmp_boot.program.cmd.windows={runtime.tools.arm-none-eabi-gcc.path}/bin/arm-none-eabi-gdb.exe
bmp_boot.program.cmd.macosx={runtime.tools.arm-none-eabi-gcc.path}/bin/arm-none-eabi-gdb

# Burn bootloader pattern
bmp_boot.program.burn_pattern={program.cmd} "{bootloader.file}.hex" --batch -ex "target extended-remote \\.\{serial.port}" -ex "mon tpwr enable" -ex "mon swdp_scan" -ex "att 1" -ex "load " -ex "compare-sections" -ex "mon hard_srst" -ex "detach"
bmp_boot.program.burn_pattern.windows={program.cmd} "{bootloader.file}.hex" -quiet --batch -ex "target extended-remote \\.\{serial.port}" -ex "mon tpwr enable" -ex "mon swdp_scan" -ex "att 1" ex "echo \nFlashing\n" -ex "load " -ex "echo \nVerifying\n" -ex "compare-sections" -ex "mon hard_srst" -ex "detach" -ex "echo \nBootloader upload complete!\n" -ex "quit"
bmp_boot.program.burn_pattern.macosx={program.cmd} "{bootloader.file}.hex" -quiet --batch -ex "target extended-remote {serial.port}" -ex "mon tpwr enable" -ex "mon swdp_scan" -ex "att 1" -ex "echo \nFlashing\n" -ex "load " -ex "echo \nVerifying\n" -ex "compare-sections" -ex "mon hard_srst" -ex "detach" -ex "echo \nBootloader upload complete!\n" -ex "quit"


# Remind user to select Jlink when used to upload sketch
bmp_boot.program.params.quiet=
bmp_boot.program.params.verbose=
bmp_boot.program.pattern=echo Please select <Black Magic Probe for Bluefruit nRF52> as programmer


#**********************************************
# Black Magic Probe
#**********************************************
bmp_erase.name=Black Magic Probe - Unlock+Erase Only
bmp_erase.program.tool=bootburn
bmp_erase.program.cmd=arm-none-eabi-gdb
bmp_erase.program.cmd.windows={runtime.tools.arm-none-eabi-gcc.path}/bin/arm-none-eabi-gdb.exe
bmp_erase.program.cmd.macosx={runtime.tools.arm-none-eabi-gcc.path}/bin/arm-none-eabi-gdb

# Burn bootloader pattern
bmp_erase.program.burn_pattern.windows={program.cmd} -quiet --batch -ex "target extended-remote \\.\{serial.port}" -ex "mon tpwr enable" -ex "mon swdp_scan" -ex "att 1" -ex "mon erase_mass" -ex "mon hard_srst" -ex "detach" -ex "echo \nUnlock+Erase complete!\n" -ex "detach" -ex "quit"
bmp_erase.program.burn_pattern.macosx={program.cmd} -quiet --batch -ex "target extended-remote {serial.port}" -ex "mon tpwr enable" -ex "mon swdp_scan" -ex "att 1" -ex "mon erase_mass" -ex "mon hard_srst" -ex "detach" -ex "echo \nUnlock+Erase complete!\n" -ex "detach" -ex "quit"


0 comments on commit 432d05b

Please sign in to comment.