]> sigrok.org Git - libsigrokdecode.git/blob - jtag/olimex_stm32-h103/README
Add a JTAG dump of an STM32 being flashed.
[libsigrokdecode.git] / jtag / olimex_stm32-h103 / README
1 -------------------------------------------------------------------------------
2 JTAG
3 -------------------------------------------------------------------------------
4
5 This is a set of example captures of JTAG communication to an Olimex
6 STM32-H103 eval board with an ST STM32 (ARM Cortex-M3) microcontroller.
7
8 The JTAG adapter used was the FTDI FT2232H based Floss-JTAG (V0.2).
9
10 The firmware flashed to the board is a simple LED-blinking libopencm3
11 example named 'fancyblink'. The respective fancyblink.bin file is
12 available as a reference in the same directory as this README.
13 The file's MD5 sum is aa6980d55b9ced84fc0c64bfe9e5ff98.
14
15 Details:
16 http://olimex.com/dev/stm32-h103.html
17 http://randomprojects.org/wiki/Floss-JTAG
18 http://libopencm3.org
19 http://libopencm3.git.sourceforge.net/git/gitweb.cgi?p=libopencm3/libopencm3;a=tree;f=examples/stm32/f1/stm32-h103/fancyblink
20
21
22 Logic analyzer setup
23 --------------------
24
25 The logic analyzer used for capturing was a Saleae Logic:
26
27   Probe       STM32-H103 JTAG connector
28   -------------------------------------
29   1 (black)   TRST
30   2 (brown)   TDI
31   3 (red)     TMS
32   4 (orange)  TCK
33   5 (yellow)  TDO
34   6 (green)   RST
35
36
37 JTAG/OpenOCD setup
38 ------------------
39
40 The OpenOCD used was "0.5.0 (2011-08-09-08:45)" (Debian version 0.5.0-1).
41
42 It was invoked like this:
43
44   openocd -f interface/flossjtag-noeeprom.cfg \
45           -f board/olimex_stm32_h107.cfg \
46           -c "init" -c "reset init" \
47           -c "stm32f1x mass_erase 0" \
48           -c "flash write_image fancyblink.bin" \
49           -c "reset" \
50           -c "shutdown"
51
52 sigrok setup
53 ------------
54
55 The sigrok command line used was:
56
57   sigrok-cli -d 0:samplerate=4mhz --time 20s \
58              -p '1=TRST,2=TDI,3=TMS,4=TCK,5=TDO,6=RST' \
59              -o olimex_stm32-h103_flash_fancyblink.sr
60