On 3 Jul 2013 16:08, "simonqian.openocd" <[email protected]>
wrote:
>
> Hi, all
> It's almost 5 years after my first implementation in OpenoCD of SWD
support for Versaloon.
> This support is not maintained for a long time, because I'm too busy with
my job.
> These days, I received a request from an vendor of Cortex ARM to
implement a SWD debugger.
> So I go back with the SWD code, and found OpenOCD has fixed some problem,
arm_adi_v5.c is not dependent on JTAG now.

Yes that part is fixed.

> I plan to add the SWD support of Versaloon in OpenOCD way.
>
> The first problem, is that the target scripts are dependent on JTAG layer.
> Is there any STM32F1X scripts which can be used in SWD mode, I mean
without JTAG-specific commands?
>

I have been working on merging the cmsis-dap support and also ran into this
problem as well.

See http://repo.or.cz/w/openocd/ntfreak.git/shortlog/refs/heads/cmsis-dap

and in particular the changes I am thinking about in
http://repo.or.cz/w/openocd/ntfreak.git/blob/7788d9faa1c3970b0cac5eec34fbed6b1df07753:/tcl/target/swj-dp.tcl

A cfg that uses this change is
http://repo.or.cz/w/openocd/ntfreak.git/blob/7788d9faa1c3970b0cac5eec34fbed6b1df07753:/tcl/target/stm32f1x.cfg

Not sure if using the jtag_mode var is the best method but it may be a
start.

Cheers
Spen
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to