2010年7月12日月曜日

Accessing to a STM32 MPU with OpenOCD and JTAGkey2

I tried to run OpenOCD with my JTAGkey2.
  • Getting and Extracting the libftd2xx
    • http://www.ftdichip.com/Drivers/D2XX.htm
    • tar xvfz libftd2xx0.4.16.tar.gz
  • Getting the OpenOCD latest source codes.
    • git clone git://openocd.git.sourceforge.net/gitroot/openocd/openocd
  • ./bootstrap
      • Configuring the option
        • ./configure --enable-ft2232_libftdi --with-ftd2xx-linux-tardir=/path/to/libftd2xx0.4.16
      • Building...
        • make
      • Editing a interface configuration file.
        • -ft2232_device_desc "Amontec JTAGkey-2"
        • +ft2232_device_desc "Amontec JTAGkey-2P A"
      • Running...
      shinta@ubuntu:~/Projects/openocd/openocd/src$ ./openocd -f interface/jtagkey2.cfg -f target/stm32.cfg
      Open On-Chip Debugger 0.5.0-dev-00403-ge8445c9-dirty (2010-07-11-13:51)
      Licensed under GNU GPL v2
      For bug reports, read
          http://openocd.berlios.de/doc/doxygen/bugs.html
      Info : only one transport option; autoselect 'jtag'
      1000 kHz
      adapter_nsrst_delay: 100
      jtag_ntrst_delay: 100
      Info : max TCK change to: 30000 kHz
      Info : clock speed 1000 kHz
      Info : JTAG tap: stm32.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0xba00, 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

        0 件のコメント:

        コメントを投稿