RTL00_WEB_VS/RTLGDB/USDK/flasher/add_sample_bat/JLinkGDB-RunRAM.bat
ADElectronics 764b020238 update
2017-11-28 22:31:40 +03:00

15 lines
No EOL
409 B
Batchfile

@echo off
call paths.bat
@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