jlink.bat 458 B

12345678910111213141516171819
  1. @echo off
  2. setlocal ENABLEDELAYEDEXPANSION
  3. set jlink="C:\Program Files (x86)\SEGGER\JLink\JLink.exe"
  4. ::--------------------------------------------------------
  5. ::-- %1: shell command file
  6. ::--------------------------------------------------------
  7. if "%1" == "" (
  8. @echo Usage:
  9. @echo %~nx0 command_file
  10. @echo Example:
  11. @echo %~nx0 jlink_adfu.txt
  12. goto :eof
  13. )
  14. %jlink% -device Cortex-M33 -if SWD -speed 10000 -autoconnect 1 -CommandFile %1
  15. ::pause