2017-11-27 21:19:49 +00:00
|
|
|
@echo off
|
2018-08-10 20:11:32 +01:00
|
|
|
rem Note %~dp0 get path of this batch file
|
|
|
|
rem Need to change drive if My Documents is on a drive other than C:
|
2017-11-27 21:19:49 +00:00
|
|
|
set driverLetter=%~dp0
|
|
|
|
set driverLetter=%driverLetter:~0,2%
|
|
|
|
%driverLetter%
|
|
|
|
cd %~dp0
|
|
|
|
|
2018-08-10 20:11:32 +01:00
|
|
|
rem The lines below are needed to fix path issues with incorrect slashes before the bin file name
|
|
|
|
set fwpath=%3
|
|
|
|
set fwpath=%fwpath:/=\%
|
2017-11-27 21:19:49 +00:00
|
|
|
|
2018-08-10 20:11:32 +01:00
|
|
|
echo stm32flash -v -g %2 -b 57600 -w %fwpath% %1
|
|
|
|
echo.
|
2017-11-27 21:19:49 +00:00
|
|
|
|
2018-08-10 20:11:32 +01:00
|
|
|
stm32flash -v -g %2 -b 57600 -w %fwpath% %1
|