Skip to content

Commit 398fff6

Browse files
committed
Fixed incorect arguments for stlink_upload
The number of arguments being passed to the stlink_upload script on linux, linux64, macosx is one (this may have been more in the past but the with version 1.8.8) this is now only a single argument. The change changes the variable referenced in the script from $4 to $1. This change already appears to have been applied to the windows version of the script.
1 parent ee0caa6 commit 398fff6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tools/linux/stlink_upload

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
$(dirname $0)/stlink/st-flash write "$4" 0x8000000
2+
$(dirname $0)/stlink/st-flash write "$1" 0x8000000
33
exit 0
44

55
## 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

tools/linux64/stlink_upload

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ USBRESET=$(which usb-reset) || USBRESET="./usb-reset"
2828
LEAF_STATUS=$(leaf_status)
2929
echo "USB Status [$LEAF_STATUS]"
3030

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

3333
sleep 4
3434
# Reset the usb device to bring up the tty rather than DFU

tools/macosx/stlink_upload

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/bash
2-
$(dirname $0)/stlink/st-flash write "$4" 0x8000000
2+
$(dirname $0)/stlink/st-flash write "$1" 0x8000000

0 commit comments

Comments
 (0)