J-Link / J-Trace (UM08001) © 2004-2017 SEGGER Microcontroller GmbH & Co. KG
153
Note: Unprotecting a secured device or will cause a mass erase of the flash
memory.
3.12.2.1 Command Line Options
The J-Link STM32 Unlock Utility can be started with different command line options
for test and automation purposes. In the following, the available command line
options are explained.
-IP
Selects IP as host interface to connect to J-Link. Default host interface is USB.
Syntax
-IP <IPAddr>
Example
JLinkSTM32.exe -IP 192.168.1.17
Additional information
To select from a list of all available emulators on Ethernet, please use * as <IPAddr>.
-SelectEmuBySN
Connect to a J-Link with a specific serial number via USB. Useful if multiple J-Links
are connected to the same PC.
Syntax
-SelectEmuBySN <SerialNo>
Example
JLinkSTM32.exe -SelectEmuBySN 580011111
-Speed
Starts J-Link STM32 Unlock Utility with a given initial speed. Available parameters
are "adaptive", "auto" or a freely selectable integer value in kHz. It is recom-
mended to use either a fixed speed or, if it is available on the target, adaptive
speeds. Default interface speed is 1000 kHz.
Syntax
-Speed <Speed_kHz>
-SetPowerTarget
The connected debug probe will power the target via pin 19 of the debug connector.
Syntax