]> sigrok.org Git - sigrok-dumps.git/blame - swd/stlink_openocd/README
swd: Move README into the respective dir(s).
[sigrok-dumps.git] / swd / stlink_openocd / README
CommitLineData
928b5d63
AG
1-------------------------------------------------------------------------------
2SWD
3-------------------------------------------------------------------------------
4
5This is a set of example captures of the ARM SWD (version 1) protocol.
6
7Details:
8http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ihi0031c/index.html
5ed6b039 9(registration required)
928b5d63
AG
10
11
12Logic analyzer setup
13--------------------
14
15 Probe SWD
16 ---------------
17 0 swclk
18 1 swdio
19
20
21Data
22----
23
24Different SWD sessions showing different types of behaviour:
25
928b5d63
AG
26* stlink_openocd/
27
28Using an STLINK-V2 adapter via OpenOCD 0.9.0 development
29version. Device under test is a Nordic nRF51822.
30
31Command line:
32
33 $ openocd -f interface/stlink-v2.cfg -c 'transport select hla_swd' \
34 -f target/nrf51.cfg
35
36** stlink_openocd/init.sr
37 Intiliasing device, IDCODE read, etc.
38 OpenOCD args: -c "init; exit"
39
40** stlink_openocd/init_write_0xabbabeeb.sr
41 Initialise, write 20 bytes of 0xabbabeeb at start of RAM.
42 OpenOCD args: -c "init; halt; mww 0x20000000 0xabbabeeb 20; exit"
43
44** stlink_openocd/wait_retry.sr
45 Capture showing an SWD WAIT with overrun mode not enabled (in contrast to
46 ftdi_openocd/wait_retry.sr), adapter immediately retries and gets an OK
47 response.
48
49 For this capture OpenOCD was patched with this change (known to induce
50 SWD WAITs): http://openocd.zylin.com/#/c/2204/
51
52 OpenOCD args: -c "init; reset halt; flash fillw 0 0xabbabeeb 2048; exit"
53