Fix permission and issue with x86_64 host
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
This commit is contained in:
parent
a0581df216
commit
fbc6652d33
3 changed files with 6 additions and 2 deletions
0
linux/nucleoFlasher/nucleoFlasher
Normal file → Executable file
0
linux/nucleoFlasher/nucleoFlasher
Normal file → Executable 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
0
nucleoFlasher/nucleoFlasher
Normal file → Executable file
Loading…
Reference in a new issue