OpenOCD
Serial Wire Debug (SWD)
2011-02-23
Recently I tried to test the SWD debug transport over a FT2232 based JTAG adaptor and over a Versaloon (based on STM32) adaptor. The debug target was a STM32 Discovery board.
FT2232 Adaptor
I modified the adaptor configuration file, so that SWD is enabled. Is this correct?
interface_transports swd interface ft2232 transport select swd ft2232_vid_pid 0x0403 0x6010 ft2232_device_desc "Dual RS232" ft2232_layout "oocdlink" ft2232_latency 2 jtag_khz 200
OpenOCD does not start. It complains with an error message:
::
- Error: BUG: current_target out of bounds
Versaloon
I have two *STM32 Discovery* Boards and modified one of them to have a Versaloon adapter instead of the original ST-Link software. I took the following descriptions:
These two fotos show my connections between the two board:
My configuration file is vsllink_swd.cfg:
interface_transports swd interface vsllink # transport select swd swd_mode 2 swd_delay 2
On OpenOCD startup I have the same problem as written above:
Error: BUG: current_target out of bounds