3.2.3
Using command files
J-Link commander can also be used in batch mode which allows the user to use J-
Link commander for batch processing and without user interaction. Please do not
confuse command file with J-Link script files (please refer to J-Link script files on
page 206 for more information about J-Link script files). When using J-Link com-
mander in batch mode, the path to a command file is passed to it. The syntax in the
command file is the same as when using regular commands in J-Link commander
(one line per command). SEGGER recommends to always pass the device name via
command line option due some devices need special handling on connect/reset in
order to guarantee proper function.
Example
JLink.exe -device STM32F103ZE -CommanderScript C:\CommandFile.jlink
Contents of CommandFile.jlink:
si 1
speed 4000
r
h
loadbin C:\firmware.bin,0x08000000
J-Link / J-Trace (UM08001)
© 2004-2017 SEGGER Microcontroller GmbH & Co. KG
91
Need help?
Do you have a question about the J-Link and is the answer not in the manual?
Questions and answers