Fix permission and issue with x86_64 host

Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
This commit is contained in:
Frederic.Pillon 2016-12-13 11:48:55 +01:00
parent a0581df216
commit fbc6652d33
3 changed files with 6 additions and 2 deletions

0
linux/nucleoFlasher/nucleoFlasher Normal file → Executable file
View file

View file

@ -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()

0
nucleoFlasher/nucleoFlasher Normal file → Executable file
View file