I've sent the patch for review.
And the patch for mem_ap_read_buf_u32 is ready and tested OK both on JTAG and
SWD.
Next will be adding the SWD drivers.
I recommend to user the current JTAG queue functions.
In my original SWD patch, I add SWD_SEQ and SWD_TRANSACT commands to
jtag_command_type.
And add the corresponding struct in jtag_command_container.
Add swd_add_sequence, swd_add_transact_out, swd_add_transact_in.
And corresponding implementations in driver.c.
Implement the SWD codes in adi_v5_swd.c, and fix ahbap_debugport_init.
What's more, we'll need a command to set trn of SWD.
simonqian.openocd
From: Peter Stuge
Date: 2012-03-16 00:36
To: openocd-devel
Subject: Re: [OpenOCD-devel] make arm_adi_v5.c transport independent
simonqian.openocd wrote:
> I'm doing some tests, if it's OK I'll format a new patch.
I think it looks fine. Am looking forward to the patch.
I would suggest changing the Tcl command from jtag to e.g. transport
while keeping backwards compatibility but outputing a warning
whenever someone uses the old command, but that can be done later.
//Peter
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel