Skip to content

Commit fbc6652

Browse files
committed
Fix permission and issue with x86_64 host
Signed-off-by: Frederic.Pillon <[email protected]>
1 parent a0581df commit fbc6652

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

Lines changed: 6 additions & 2 deletions
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)