On Tue, Jan 22, 2013 at 12:47 PM, Xiaofan Chen <[email protected]> wrote: > On Thu, Jan 17, 2013 at 5:57 AM, Spencer Oliver <[email protected]> wrote: >> I have already started the rebase - >> http://repo.or.cz/w/openocd/ntfreak.git/shortlog/refs/heads/libswd >> > > This is nice. Just wondering how one can test the libswd > branch now. The only supported adapter for SWD seems > to be KT-Link which I do not have.
Hello Xiao :-) SWD/LibSWD will work with any FT2232 device using st2232 driver. You only need to have valid buffer configuration. Buffer direction switch use RnW interface_signal definition mask. Spen reported that nRnW is missing as well, I will add it for inverted buffers input :-) > I have only J-Link and ST-Link V1/V2 which both support > SWD but not yet by Tomek's patch series. If these are ft2232 based then thwy will work. Otherwise you need to: 1. Create "bitbang" and "transfer" methods for them and use LibSWD interface features. LibSWD is then responsible to translate DAP requests into/from bitstream and put it on the wire with "bitbang" and "transfer" methods of selected interface. 2. Create a dedicated SWD features for that interface if it can handle DP/AP R/W operations on its own. Features will get DAP operations from the Target layer directly and operate in their own manner. This organization makes possible to work with generic interfaces and also use existing features of the "smart" interfaces. > Or is it already helpful to see if the patch series break > existing JTAG support? There is only one change/commit that can break things - transport change commit that changes transport layer organization a bit. Spen reported it to break STLink/HLA drivers. All other changes are noninvassive and backward compatible. Best regards :-) Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
