Use 64 bit version of st-flash on linux

This commit is contained in:
Daniel Fekete 2017-04-24 19:51:23 +02:00
parent a2b33aa10f
commit c5b7f502f2
1 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
#!/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