November 07, 2024, 11:35:11 PM

ARM-JTAG-SWD and OpenOCD

Started by delaitre, October 18, 2012, 01:15:12 PM

Previous topic - Next topic

delaitre

Hi,

I have a P407 board and apparently the best way to flash/debug on it is using SWD rather than JTAG as there are some conflicts with the JTAG signals and the available stuff on the board (screen...).

Then, on the ARM-JTAG-SWD page (https://www.olimex.com/Products/ARM/JTAG/ARM-JTAG-SWD/) the FAQ says:
Quote
For the moment only Rowley CrossWorks support ARM-JTAG-SWD, but the support in OpenOCD is easy to be implemented and this will happen soon ;)

As there is no date on the page, I wanted to know if there is any update on this?

I saw that the libswd project (http://sourceforge.net/apps/trac/libswd) released the 0.4.0 version 4 days ago with, in the changelog:
Quote
OpenOCD integration is almost done, flashing works (1938B/18.6s with FT2232)

However, I have big difficulties to see if the support in OpenOCD is done (and if not, what is missing), if and how I can use it... I found an openocd-swd project too but it seems dead...

Thanks in advance!

delaitre

Just a small follow-up:

I've tried with a ST-Link v2 interface and it works out of the box with the p407 board.
Just run "./openocd -f interface/stlink-v2.cfg -f target/stm32f4x_stlink.cf" and enjoy :)

Still, it would be good to have answers for the Olimex's ARM-JTAG-SWD support in OpenOCD...

LubOlimex

#2
Hello delaitre,

I haven't seen a working example, but if they say it is implemented and somebody has made it work I will update the page. So far no one made the combo ARM-JTAG-TINY/OCD + ARM-JTAG-SWD work with SWD only chips.

The adapter works fine with latest versions of OpenOCD. Usage info is present in the user's manual.

I have tested the adapter and our programmers in Rowley Crossworks (with Cortex M0 board) and it works, but somebody at Rowley implemented that support.

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex