frpr
September 6, 2011, 8:12pm
1
Hello,
I have bought Bus Blaster v2 that is FT2232H based and it should behave as jtag-key.
Now I want to compile OpenOCD under windows in order to use it under yagarto toolchain.
I use winXP and cygwin. I don’t know which drivers should I compile with OpenOCD. How do I bring it to operation? Is there any cookery-book?
frpr
September 7, 2011, 8:07pm
2
edit1>
I followed this nice guide (viewtopic.php?f=18&t=11221 ).
I ended with working OOCD. It seems everything is ok (under cygwin). Command line operations work. How do I configure yagarto IDE (or Eclipse IDE) to operate with OOCD and gdb ? Do I need compile the OOCD again as “mingw” for Eclipse CDT plugin?
Already done:
1/ copy the BB2 config from “dangerousprototypes.com ” to
“myWinHome/openocd/tcl/interface/busblaster.cfg”
#
# Bus Blaster
#
# http://dangerousprototypes.com/docs/Bus_Blaster
#
interface ft2232
ft2232_vid_pid 0x0403 0x6010
ft2232_device_desc "Dual RS232-HS"
ft2232_layout jtagkey
ft2232_latency 2
jtag_khz 2000
2/ Connect a board with STM32F103RB device and BB2 by eight JTAG wires. Power switched on.
3/ Run in one window
$ cd myWinHome/openocd/src
$ openocd -f …/tcl/interface/busblaster.cfg -f …/tcl/target/stm32f1x.cfg
Open On-Chip Debugger 0.5.0 (2011-09-06-20:29)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
2000 kHz
1000 kHz
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
cortex_m3 reset_config sysresetreq
Info : max TCK change to: 30000 kHz
Info : clock speed 1000 kHz
Info : JTAG tap: stm32.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0xba0
0, ver: 0x3)
Info : JTAG tap: stm32.bs tap/device found: 0x16410041 (mfg: 0x020, part: 0x6410
, ver: 0x1)
Info : stm32.cpu: hardware has 6 breakpoints, 4 watchpoints
4/ Run in second window
$ telnet localhost 4444
> flash probe 0
device id= 0x20036410
flash size= 128kbytes
flash 'stm32f1x' found at 0x08000000
> shutdown