]>
Commit | Line | Data |
---|---|---|
928b5d63 AG |
1 | ------------------------------------------------------------------------------- |
2 | SWD | |
3 | ------------------------------------------------------------------------------- | |
4 | ||
5 | This is a set of example captures of the ARM SWD (version 1) protocol. | |
6 | ||
7 | Details: | |
8 | http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ihi0031c/index.html | |
5ed6b039 | 9 | (registration required) |
928b5d63 AG |
10 | |
11 | ||
12 | Logic analyzer setup | |
13 | -------------------- | |
14 | ||
15 | Probe SWD | |
16 | --------------- | |
17 | 0 swclk | |
18 | 1 swdio | |
19 | ||
20 | ||
21 | Data | |
22 | ---- | |
23 | ||
24 | Different SWD sessions showing different types of behaviour: | |
25 | ||
928b5d63 AG |
26 | * stlink_openocd/ |
27 | ||
28 | Using an STLINK-V2 adapter via OpenOCD 0.9.0 development | |
29 | version. Device under test is a Nordic nRF51822. | |
30 | ||
31 | Command 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 |