FT2232D-based JTAG adapter interfaces with STM32F3 Discovery board

With the help of Paul Fertser from IRC channel #OpenOCD on oftc.net and the interface config file he kindly created for my JTAG adapter:

#
# www.100ask.org OpenJTAG
#
# http://www.100ask.net/OpenJTAG.html
#

interface ftdi
ftdi_device_desc "USB<=>JTAG&RS232"
ftdi_vid_pid 0x1457 0x5118

ftdi_layout_init 0x0f08 0x0f1b
ftdi_layout_signal nSRST -data 0x0200 -noe 0x0800
ftdi_layout_signal nTRST -data 0x0100 -noe 0x0400

… I was able to interface with a STM32F3 Discovery Board.

Foto…

More specifically, I interfaced with the STM32F303, the main microcontroller on the board. In order to do that, I I mapped the JTAG pins, referenced in the chip’s datasheet, to header pins available on the board:

  • TMS = PA13
  • TCLK = PA14
  • TDI = PA15
  • TDO = PB3
  • nTRST = PB4
  • 3.3V
  • GND

After connecting the corresponding adapter pins, I could verify the connection by successfully executing some OpenOCD demo commands:

$ openocd -f interface/ftdi/100ask-openjtag.cfg -f target/stm32f3x.cfg -c "reset_config none; init; reset halt; reset; reset halt; shutdown"
Open On-Chip Debugger 0.8.0 (2014-10-20-22:02)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
cortex_m reset_config sysresetreq
none separate
Info : clock speed 1000 kHz
Info : JTAG tap: stm32f3x.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
Info : JTAG tap: stm32f3x.bs tap/device found: 0x06422041 (mfg: 0x020, part: 0x6422, ver: 0x0)
Info : stm32f3x.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : JTAG tap: stm32f3x.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
Info : JTAG tap: stm32f3x.bs tap/device found: 0x06422041 (mfg: 0x020, part: 0x6422, ver: 0x0)
target state: halted
target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x08000704 msp: 0x2000a000
Info : JTAG tap: stm32f3x.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
Info : JTAG tap: stm32f3x.bs tap/device found: 0x06422041 (mfg: 0x020, part: 0x6422, ver: 0x0)
Info : JTAG tap: stm32f3x.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
Info : JTAG tap: stm32f3x.bs tap/device found: 0x06422041 (mfg: 0x020, part: 0x6422, ver: 0x0)
target state: halted
target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x08000704 msp: 0x2000a000
shutdown command invoked
3252 mal insgesamt angesehen, 1 mal heute angesehen.
Dieser Beitrag wurde unter JTAG abgelegt und mit , , , , verschlagwortet. Setze ein Lesezeichen auf den Permalink.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.