[BMPM] Tell Black Magic probe to use the reset pin before scanning for JTAG or SWD targets.

This should fix situations where it is impossible to program a target
using JTAG or SWD as the target can not be found.

Also added comments and a check if the load was successful.
This commit is contained in:
Piotr Esden-Tempski
2015-08-16 17:32:54 +02:00
parent 42d0a6cf49
commit ce91a2215e
2 changed files with 21 additions and 0 deletions
+11
View File
@@ -1,4 +1,15 @@
# Print BMPM version
mon version
# To make sure the target is not in a "strange" mode we tell BMPM to reset the
# target using the reset pin.
mon connect_srst enable
# Find the target
monitor jtag_scan
# Attach to the first device
attach 1
# Load the binary
load
# Check if the flash matches the binary
compare-sections
# Reset and exit
kill
+10
View File
@@ -1,5 +1,15 @@
# Print BMPM version
monitor version
# To make sure the target is not in a "strange" mode we tell BMPM to reset the
# target using the reset pin.
mon connect_srst enable
# Scan for devices using SWD interface
monitor swdp_scan
# Attach to the first device
attach 1
# Load the binary into the flash
load
# Check if the flash matches the binary
compare-sections
# Reset and exit
kill