mirror of
https://github.com/QuantumLeaps/qpc.git
synced 2025-01-28 07:03:10 +08:00
34 lines
942 B
Batchfile
34 lines
942 B
Batchfile
|
::============================================================================
|
||
|
:: Batch file to load the DPP-QXK program to the flash of STM32 boards
|
||
|
::
|
||
|
:: NOTE: requires the ST-LINK utlity from ST, see:
|
||
|
:: http://www.st.com/en/embedded-software/stsw-link004.html
|
||
|
::
|
||
|
@echo off
|
||
|
setlocal
|
||
|
|
||
|
@echo Load the program to the flash of STM32 board
|
||
|
@echo usage: flash
|
||
|
@echo usage: flash rel
|
||
|
@echo usage: flash spy
|
||
|
|
||
|
::----------------------------------------------------------------------------
|
||
|
:: NOTE: Adjust the following symbol to the location of the
|
||
|
:: LMFlash utility on your machine
|
||
|
::
|
||
|
set STLINK="C:\tools\ST\ST-LINK\ST-LINK Utility\ST-LINK_CLI.exe"
|
||
|
|
||
|
:: set the build directory depending on the first parameter %1
|
||
|
set BUILD_DIR=dbg
|
||
|
if [%1] NEQ [] set BUILD_DIR=%1
|
||
|
@echo on
|
||
|
|
||
|
%STLINK% -P %BUILD_DIR%\dpp-qxk.bin 0x08000000
|
||
|
|
||
|
@echo.
|
||
|
@echo.
|
||
|
@echo Reset the target to start running your program!
|
||
|
|
||
|
@echo off
|
||
|
endlocal
|