Skip to content

Commit 4963647

Browse files
authored
Merge pull request #5 from fpistm/fpistm
Fix permission and issue with x86_64 host
2 parents a0581df + fbc6652 commit 4963647

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

linux/nucleoFlasher/nucleoFlasher

100644100755
File mode changed.

linux/stlink_upload

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
#!/bin/bash
2-
$(dirname $0)/stlink/st-flash write "$4" 0x8000000
2+
if [ `uname -m` == "x86_64" ]; then
3+
$(dirname $0)/../linux64/stlink/st-flash write "$4" 0x8000000
4+
else
5+
$(dirname $0)/stlink/st-flash write "$4" 0x8000000
6+
fi
37
exit 0
48

5-
## 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
9+
## Remove the lines 2 to 7 (above) if you want this script to wait until the Serial device has been enumerated and loaded before the script exits
610

711
# Check for leaf device.
812
function leaf_status()

nucleoFlasher/nucleoFlasher

100644100755
File mode changed.

0 commit comments

Comments
 (0)