Previous update has replaced the 32 bits (PE32) version by a 64 bits one (PE32+). To avoid any issue for user running on 32 bits OS, use the 32 bits version per default. The 64 bits version can be used and is named "stm32flash64.exe" Those binaries are now stored in "stm32flash/" directory in order to be aligned with other host OS structure. Serial upload has been updated and cleaned. Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
11 lines
400 B
Batchfile
11 lines
400 B
Batchfile
@echo off
|
|
rem: Note %~dp0 get path of this batch file
|
|
rem: Need to change drive if My Documents is on a drive other than C:
|
|
set driverLetter=%~dp0
|
|
set driverLetter=%driverLetter:~0,2%
|
|
%driverLetter%
|
|
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\stm32flash.exe -g 0x8000000 -b 115200 -w %str% %1
|