W dniu 2013-01-27 17:09, Andreas Fritiofson pisze:
> Well neither of those are middle-layers. And only Jim is entangled into
> the inner workings of OpenOCD, the rest are used in peripheral code,
> i.e. inside the adapter drivers, which is completely fine.

Isn't LibSWD used in peripheral code of ft2232.c only?

> But we don't *need* generic and versatile. We need an API that is strict
> and to the point and a perfect match for the protocol it's modelling.
> Resorting to a lowest-common-denominator between SWD and some other
> imaginary protocol that no-one can yet foresee the use of in a debug
> environment, completely hides the high level operations emitted from the
> target, from the code which is talking to hardware to execute them: the
> adapter driver. This is what I mean by a middle-layer. LibSWD acts as a
> funnel or filter that converts useful information to a form that is
> gibberish to all but a certain class of adapters. I want the target code
> to talk essentially directly to the adapter driver.

Is there any better API for such thing? Most OpenOCD adapters don't have 
any "magic" commands for SWD, so it will be raw GPIO anyway...

> Adding the transfer/bitbang as an interface API doesn't help with SWD
> for adapter that doesn't provide access to raw GPIO. So we still need a
> separate API for those. Two separate API's instead of one? No thanks.
> Perhaps that's why you needed to add the "features" stuff (which may be
> a good idea for other reasons).

Isn't FTx232 chip an example of interface that provides access to raw GPIO?

As a general note - it we would build a list of "wanted features" for 
OpenOCD I guess SWD would be nr 1 for now. That's why I just don't 
understand why noone's interested in implementing that...

4\/3!!


------------------------------------------------------------------------------
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

Reply via email to