On Fri, Feb 8, 2013 at 5:30 AM, simonqian.openocd <[email protected]> wrote: > Hi all, > I read the mail list recently and find the libSWD commit. > It's good that libSWD is ready to use. > > I have also pushed SWD support in OpenOCD, but it's still not supported. > SWD support for Versaloon is implemented several years ago. > And I'm using it for several years, many Versaloon customers are using it > for SWD too.
Why not post it to gerrit for review? Even if it will not be accepted, people can still review it and maybe give valuable feedbacks to you. > The SWD part is really simply, arm_adi_v5 code in OpenOCD works > perfect. > > For OpenOCD, the possible way to SWD is to define how SWD > driver should be implemented, and then authors of different dongles > can code the driver. Yes I agree the community should discuss this and then the admins will finally decide which way to go. > For SWD, I think it should be implemented by 3 different kind of drivers: > 1. drivers providing dap_ops structure, like libswd, it implements a > dap_ops structure. > So driver can has it's own SWD operations for performance > optimization. > 2. drivers providing SWD transact layer, some intelligent dongle can simply > use this to support SWD. > 3. drivers providing IO operation, it can be a driver of 2. and it's useful > for those dongles supporting GPIO. > Of course, it will be rather slow. Looks like a nice summary. > And the work should be done by OpenOCD maintainer, they know > what kind of code can be accepted by OpenOCD, and how to commit > it for safety and compatibility issues. The admins will finally decided what to do. But they are too busy to come out a real implementation like you and Tomek (which solved some near term SWD needs for some users, but probably not accepted by the project admins). I think it is still good that you and Tomek actively participate in the discussions since you have first hand experiences. > And then, we can implement the drivers according to the capabilities > of different dongles. Yes. -- Xiaofan ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
