On Apr 17, 2012 4:17 AM, "simonqian.openocd" <[email protected]>
wrote:
>
> Hello,
>
> > The read and init operation is different in error handling between JTAG
and SWD. Are there any other differences?
>
> Yes, and init function should initialize selected adaptor instead of JTAG
only.

Adapter is another layer, an interface. Target functions should not touch
anything except target. The transport has its own routines: SELECT and
INIT, they are part of the transport dap_ops, maybe you are regarding to
them? :-)

> No, all this is necessary. Again, no care how it is implemented, but it
must be implemented in some way for SWD.

Then it can be another function in dap_ops, a smarter replacement for
current ABORT..?

> But if JTAG memap_read is transport independent, maybe there will be a
performance problem.
> I'm not sure how to process this patch.

This can be true as the impelementation of this part can take retry and
error flags handling into account whereas other functions dont anf this
could produce a slowdown. Will take a look at this when swd is finished,
right now it it working and noone complains so I would not touch this
part:-)

Best regards,
Tomek
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to