open-ameba/JLinkGDB-RunRAM.bat

15 lines
409 B
Batchfile
Raw Normal View History

2016-11-09 00:56:41 +00:00
@echo off
2017-02-02 07:05:13 +00:00
call paths.bat
2016-11-09 00:56:41 +00:00
@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
start JLinkGDBServer.exe -device Cortex-M3 -if SWD -ir -endian little -speed 1000
arm-none-eabi-gdb.exe -x flasher/gdb_run_ram.jlink
taskkill /F /IM JLinkGDBServer.exe
goto end
:err
echo Error!
:end