From fbc6652d33ca0ead1799f872cca3078ff93c97d3 Mon Sep 17 00:00:00 2001 From: "Frederic.Pillon" Date: Tue, 13 Dec 2016 11:48:55 +0100 Subject: [PATCH] Fix permission and issue with x86_64 host Signed-off-by: Frederic.Pillon --- linux/nucleoFlasher/nucleoFlasher | Bin linux/stlink_upload | 8 ++++++-- nucleoFlasher/nucleoFlasher | Bin 3 files changed, 6 insertions(+), 2 deletions(-) mode change 100644 => 100755 linux/nucleoFlasher/nucleoFlasher mode change 100644 => 100755 nucleoFlasher/nucleoFlasher diff --git a/linux/nucleoFlasher/nucleoFlasher b/linux/nucleoFlasher/nucleoFlasher old mode 100644 new mode 100755 diff --git a/linux/stlink_upload b/linux/stlink_upload index f0dd789b..d72133a8 100755 --- a/linux/stlink_upload +++ b/linux/stlink_upload @@ -1,8 +1,12 @@ #!/bin/bash -$(dirname $0)/stlink/st-flash write "$4" 0x8000000 +if [ `uname -m` == "x86_64" ]; then + $(dirname $0)/../linux64/stlink/st-flash write "$4" 0x8000000 +else + $(dirname $0)/stlink/st-flash write "$4" 0x8000000 +fi 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 +## 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 # Check for leaf device. function leaf_status() diff --git a/nucleoFlasher/nucleoFlasher b/nucleoFlasher/nucleoFlasher old mode 100644 new mode 100755