Run jlink server with command line.

July 19, 2018 ยท View on GitHub

@echo off

set DEVICENAME=STM32F102C6 set INTF=SWD set SPD=4000

JLink.exe -device %DEVICENAME% -if %INTF% -speed %SPD% -autoconnect 1

REM J-Link Commander can be started with different command line options for test and automation REM purposes. In the following, the command line options which are available for J-Link REM Commander are explained. All command line options are case insensitive. REM Command Explanation REM -AutoConnect Automatically start the target connect sequence REM -CommanderScript Passes a CommandFile to J-Link REM -CommandFile Passes a CommandFile to J-Link REM -Device Pre-selects the device J-Link Commander shall connect to REM -ExitOnError Commander exits after error. REM -If Pre-selects the target interface REM -IP Selects IP as host interface REM -JLinkScriptFile Passes a JLinkScriptFile to J-Link REM -JTAGConf Sets IRPre and DRPre REM -Log Sets logfile path REM -RTTTelnetPort Sets the RTT Telnetport REM -SelectEmuBySN Connects to a J-Link with a specific S/N over USB REM -SettingsFile Passes a SettingsFile to J-Link REM -Speed Starts J-Link Commander with a given initial speed

@echo on