33 lines
899 B
Batchfile
Raw Normal View History

2015-05-14 16:05:04 -04:00
::============================================================================
2018-05-10 14:39:45 -04:00
:: Batch file to program the flash of EK-TM4C123GXL
2015-05-14 16:05:04 -04:00
::
2018-05-10 14:39:45 -04:00
:: NOTE: requires the LMFlash programmer (included in QTools for Windows)
2015-05-14 16:05:04 -04:00
::
@echo off
setlocal
2018-05-10 14:39:45 -04:00
@echo Load a given binary file to the flash of EK-TM4C123GXL
@echo usage: flash binary-file
@echo example: flash dbg\blinky-qk.bin
2015-05-14 16:05:04 -04:00
::----------------------------------------------------------------------------
2018-05-10 14:39:45 -04:00
:: NOTE: The following symbol LMFLASH assumes that LMFlash.exe can
:: be found on the PATH. You might need to adjust this symbol to the
:: location of the LMFlash utility on your machine
2015-05-14 16:05:04 -04:00
::
2018-05-10 14:39:45 -04:00
set LMFLASH=LMFlash.exe
2015-05-14 16:05:04 -04:00
2018-05-10 14:39:45 -04:00
if ["%~1"]==[""] (
@echo The binary file missing
@goto end
)
if not exist %~s1 (
@echo The binary file '%1' does not exist
@goto end
)
2015-05-14 16:05:04 -04:00
2018-05-10 14:39:45 -04:00
%LMFLASH% -q ek-tm4c123gxl -e -v -r %1
2015-05-14 16:05:04 -04:00
2018-05-10 14:39:45 -04:00
:end
2015-05-14 16:05:04 -04:00
endlocal