X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=jtag%2Folimex_stm32-h103%2FREADME;h=d278e4fad3b5f348608fbb8a61ea08f29a238e5b;hb=6ad579ee8b9e6e02634238d662fd74c705102ed2;hp=97b70fecb6b108d4967e2ecd3de6c87a3179b023;hpb=115f77c39b96be3ae9d57c864016a5828f07b231;p=sigrok-dumps.git diff --git a/jtag/olimex_stm32-h103/README b/jtag/olimex_stm32-h103/README index 97b70fe..d278e4f 100644 --- a/jtag/olimex_stm32-h103/README +++ b/jtag/olimex_stm32-h103/README @@ -1,5 +1,5 @@ ------------------------------------------------------------------------------- -JTAG +JTAG / ST STM32 ------------------------------------------------------------------------------- This is a set of example captures of JTAG communication to an Olimex @@ -10,7 +10,8 @@ The JTAG adapter used was the FTDI FT2232H based Floss-JTAG (V0.2). The firmware flashed to the board is a simple LED-blinking libopencm3 example named 'fancyblink'. The respective fancyblink.bin file is available as a reference in the same directory as this README. -The file's MD5 sum is aa6980d55b9ced84fc0c64bfe9e5ff98. +The file's MD5 sum is aa6980d55b9ced84fc0c64bfe9e5ff98. The binary is licensed +under the GPL, version 3 or later (see URL below for the source code). Details: http://olimex.com/dev/stm32-h103.html @@ -22,11 +23,11 @@ http://libopencm3.git.sourceforge.net/git/gitweb.cgi?p=libopencm3/libopencm3;a=t Logic analyzer setup -------------------- -The logic analyzer used for capturing was a Saleae Logic: +The logic analyzer used was a Saleae Logic (at 4MHz): Probe STM32-H103 JTAG connector ------------------------------------- - 1 (black) TRST + 1 (black) TRST# 2 (brown) TDI 3 (red) TMS 4 (orange) TCK @@ -154,3 +155,37 @@ following commands were entered via the OpenOCD telnet interface: 0x20000000: 02255100 044aa200 3b02f830 3b02f821 f01368e3 d0fb0f01 0f14f013 3a01d101 0x20000020: be00d1f0 40022000 20000800 080001a5 080001ef 080001ed 080001ed 080001ed +olimex_stm32-h103_idle.sr +------------------------- + +The following OpenOCD command was used: + + openocd -f interface/flossjtag-noeeprom.cfg -f board/olimex_stm32_h107.cfg \ + -c "init" -c "reset halt" + +The sigrok command line used was: + + sigrok-cli -d 0:samplerate=4mhz --time 3s \ + -p '1=TRST,2=TDI,3=TMS,4=TCK,5=TDO,6=RST' -o + +sigrok-cli was only started a few seconds after the OpenOCD init/connection +to capture what happens when the user doesn't actively use OpenOCD commands. + + +olimex_stm32-h103_irscan_drscan.sr +---------------------------------- + +The following OpenOCD command was used: + + openocd -f interface/flossjtag-noeeprom.cfg -f board/olimex_stm32_h107.cfg \ + -c "init" -c "halt" -c "poll off" -c "sleep 4000" \ + -c "irscan stm32f1x.cpu 0xe" -c "drscan stm32f1x.cpu 32 0" + +This gets the 32bit contents of the IDCODE register (0b1110), which is +0x3ba00477, the ID for ARM Cortex-M3 r1p1-01rel0. + +The sigrok command line used was: + + sigrok-cli -d 0:samplerate=4mhz --time 5s \ + -p '1=TRST,2=TDI,3=TMS,4=TCK,5=TDO,6=RST' -o +