rtl00TstMinAmebaV35a/JLinkGDB-RunRAM.bat

15 lines
477 B
Batchfile
Raw Normal View History

2016-09-23 04:21:45 +00:00
@echo off
PATH=D:\MCU\GNU_Tools_ARM_Embedded\5.2_2015q4\bin;D:\MCU\SEGGER\JLink_V610a;%PATH%
@if exist build\obj\build.axf goto run
echo File 'build\obj\build.axf' not found!
echo Build project...
mingw32-make.exe -f Makefile all
@if not exist build\obj\build.axf goto err
:run
2016-09-23 05:42:19 +00:00
start JLinkGDBServer.exe -device Cortex-M3 -if SWD -ir -endian little -speed 3500
2016-09-23 04:21:45 +00:00
arm-none-eabi-gdb.exe -x flasher/gdb_run_ram.jlink
2016-09-23 05:42:19 +00:00
taskkill /F /IM JLinkGDBServer.exe
2016-09-23 04:21:45 +00:00
goto end
:err
echo Error!
:end