Skip to content

Commit

Permalink
Merge pull request #616 from timsavage/bugfix/stlink_upload
Browse files Browse the repository at this point in the history
Fixed incorrect arguments for stlink_upload
  • Loading branch information
rogerclarkmelbourne authored Mar 31, 2019
2 parents ee0caa6 + 398fff6 commit 677de8c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tools/linux/stlink_upload
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
$(dirname $0)/stlink/st-flash write "$4" 0x8000000
$(dirname $0)/stlink/st-flash write "$1" 0x8000000
exit 0

## Remove the lines 2 and 3 (above) if you want this script to wait until the Serial device has been enumerated and loaded before the script exits
Expand Down
2 changes: 1 addition & 1 deletion tools/linux64/stlink_upload
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ USBRESET=$(which usb-reset) || USBRESET="./usb-reset"
LEAF_STATUS=$(leaf_status)
echo "USB Status [$LEAF_STATUS]"

$(dirname $0)/stlink/st-flash write "$4" 0x8000000
$(dirname $0)/stlink/st-flash write "$1" 0x8000000

sleep 4
# Reset the usb device to bring up the tty rather than DFU
Expand Down
2 changes: 1 addition & 1 deletion tools/macosx/stlink_upload
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
$(dirname $0)/stlink/st-flash write "$4" 0x8000000
$(dirname $0)/stlink/st-flash write "$1" 0x8000000

0 comments on commit 677de8c

Please sign in to comment.