![OLIMEX ARM-USB-OCD Скачать руководство пользователя страница 23](http://html1.mh-extra.com/html/olimex/arm-usb-ocd/arm-usb-ocd_user-manual_730916023.webp)
OLIMEX© 2015
ARM-USB-OCD user's manual
3.4.3 Simple SWD target connection with ARM-JTAG-SWD
Note that the ARM-JTAG-SWD adapter is supported in OpenOCD versions 0.9.0 or newer. You
can't establish a successful connection with OpenOCD older than 0.9.0.
The SWD connection requires an additional parameter.
openocd -f interface/ftdi/olimex-arm-usb-ocd-h.cfg -f interface/ftdi/olimex-
arm-jtag-swd.cfg -f target/stm32f1x.cfg
The response to a successful connection looks like:
Info : FTDI SWD mode enabled
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
cortex_m reset_config sysresetreq
Info : clock speed 1000 kHz
Info : SWD IDCODE 0x1ba01477
Info : stm32f1x.cpu: hardware has 6 breakpoints, 4 watchpoints
3.5 Advanced OpenOCD practices
Information on few common and often requested practices are detailed below. You would find the
answers to commonly raised questions like “how to use multiple OpenOCD debuggers to the same
computer?” and “how to change the vendor and product identification numbers (VID and PID) of
the device?”.
3.5.1 Using multiple ARM-USB-OCD interfaces
In OpenOCD there is a specific parameter that allows the usage of multiple debuggers on the same
computer. Despite that the OLIMEX debuggers have the same VID and PID, they have unique
serial numbers. The serial number is stored in the “iSerial” property of the USB information. After
we have identified the serial number of each connected debugger we need to create own
configuration file for each debugger. The debugger's serial number has to be defined with
"ftdi_serial".
The easiest way to determine the serial number in Linux is to use “lsusb -v” and then identify the
port and the “iSerial” property in the detailed information.
The easiest way to determine the serial number in Windows is to check the properties of the
interface in the “Windows Device Manager”. In “Details” tab select “Parent” category from the
drop-down menu. Refer to the screenshot on the next page!
If you have trouble identifying the serial number you might want to use third party USB analyzer
program.
Page 23 of 33