Update scripts to be aligned with Arduino_STM32 tools
Serial_upload: speed change to 115200 https://github.com/LightningStalker/Arduino_STM32/pull/1 Maple rules:ed82be4c6eMaple_upload:437834a91f (diff-a0a50ec8cd3ccc8618dcd0dbf108becc)9b03f0841dSigned-off-by: Frederic.Pillon <frederic.pillon@st.com>
This commit is contained in:
parent
20eed25f42
commit
ac06dd9dad
10 changed files with 43 additions and 8 deletions
|
|
@ -1,5 +1,5 @@
|
|||
ATTRS{idProduct}=="1001", ATTRS{idVendor}=="0110", MODE="664", GROUP="plugdev"
|
||||
ATTRS{idProduct}=="1002", ATTRS{idVendor}=="0110", MODE="664", GROUP="plugdev"
|
||||
ATTRS{idProduct}=="0003", ATTRS{idVendor}=="1eaf", MODE="664", GROUP="plugdev" SYMLINK+="maple"
|
||||
ATTRS{idProduct}=="0004", ATTRS{idVendor}=="1eaf", MODE="664", GROUP="plugdev" SYMLINK+="maple"
|
||||
ATTRS{idProduct}=="0003", ATTRS{idVendor}=="1eaf", MODE="664", GROUP="plugdev" SYMLINK+="maple", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||
ATTRS{idProduct}=="0004", ATTRS{idVendor}=="1eaf", MODE="664", GROUP="plugdev" SYMLINK+="maple", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||
|
||||
|
|
|
|||
|
|
@ -38,3 +38,12 @@ if [ ! -x "${DFU_UTIL}" ]; then
|
|||
fi
|
||||
|
||||
"${DFU_UTIL}" -d ${usbID} -a ${altID} -D ${binfile} ${dfuse_addr} -R
|
||||
|
||||
echo -n Waiting for ${dummy_port_fullpath} serial...
|
||||
|
||||
COUNTER=0
|
||||
while [ ! -r ${dummy_port_fullpath} ] && ((COUNTER++ < 40)); do
|
||||
sleep 0.1
|
||||
done
|
||||
|
||||
echo Done
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
#!/bin/bash
|
||||
$(dirname $0)/stm32flash/stm32flash -g 0x8000000 -b 230400 -w "$4" /dev/"$1"
|
||||
$(dirname $0)/stm32flash/stm32flash -g 0x8000000 -b 115200 -w "$4" /dev/"$1"
|
||||
|
|
|
|||
|
|
@ -38,3 +38,12 @@ if [ ! -x "${DFU_UTIL}" ]; then
|
|||
fi
|
||||
|
||||
"${DFU_UTIL}" -d ${usbID} -a ${altID} -D ${binfile} ${dfuse_addr} -R
|
||||
|
||||
echo -n Waiting for ${dummy_port_fullpath} serial...
|
||||
|
||||
COUNTER=0
|
||||
while [ ! -c ${dummy_port_fullpath} ] && ((COUNTER++ < 40)); do
|
||||
sleep 0.1
|
||||
done
|
||||
|
||||
echo Done
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
#!/bin/bash
|
||||
$(dirname $0)/stm32flash/stm32flash -g 0x8000000 -b 230400 -w "$4" /dev/"$1"
|
||||
$(dirname $0)/stm32flash/stm32flash -g 0x8000000 -b 115200 -w "$4" /dev/"$1"
|
||||
|
|
|
|||
|
|
@ -3,8 +3,6 @@ LD_LIBRARY_PATH=$(dirname $0)/stlink/lib
|
|||
$(dirname $0)/stlink/st-flash write "$4" 0x8000000
|
||||
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
|
||||
|
||||
# Check for leaf device.
|
||||
function leaf_status()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -51,3 +51,12 @@ if [ ! -x ${DFU_UTIL} ]; then
|
|||
fi
|
||||
|
||||
${DFU_UTIL} -d ${usbID} -a ${altID} -D ${binfile} -R ${dfuse_addr} -R
|
||||
|
||||
echo -n Waiting for ${dummy_port_fullpath} serial...
|
||||
|
||||
COUNTER=0
|
||||
while [ ! -c ${dummy_port_fullpath} ] && ((COUNTER++ < 40)); do
|
||||
sleep 0.1
|
||||
done
|
||||
|
||||
echo Done
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
#!/bin/bash
|
||||
$(dirname $0)/stm32flash/stm32flash -g 0x8000000 -b 230400 -w "$4" /dev/"$1"
|
||||
$(dirname $0)/stm32flash/stm32flash -g 0x8000000 -b 115200 -w "$4" /dev/"$1"
|
||||
|
|
|
|||
|
|
@ -6,3 +6,13 @@ set driverLetter=%driverLetter:~0,2%
|
|||
%driverLetter%
|
||||
cd %~dp0
|
||||
java -jar maple_loader.jar %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
|
||||
for /l %%x in (1, 1, 40) do (
|
||||
ping -w 50 -n 1 192.0.2.1 > nul
|
||||
mode %1 > nul
|
||||
if ERRORLEVEL 0 goto comPortFound
|
||||
)
|
||||
|
||||
echo timeout waiting for %1 serial
|
||||
|
||||
:comPortFound
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ cd %~dp0
|
|||
rem: the two line below are needed to fix path issues with incorrect slashes before the bin file name
|
||||
set str=%4
|
||||
set str=%str:/=\%
|
||||
stm32flash -g 0x8000000 -b 230400 -w %str% %1
|
||||
stm32flash -g 0x8000000 -b 115200 -w %str% %1
|
||||
rem: C:\Python27\python.exe stm32loader.py -e -w -p %1 -g -b 115200 %str%
|
||||
|
||||
rem: ------------- use STM's own uploader
|
||||
|
|
|
|||
Loading…
Reference in a new issue