On Fri, Jul 18, 2014 at 06:15:28PM +1000, Angus Gratton wrote:
> Diff for the hack is here (both changes appear necessary):
> https://gist.github.com/projectgus/224f06d0276affc69826

Have you tried sending one or more SWD line resets before
swd_seq_jtag_to_swd instead of plain 0xff's?

Also, why not set the frequency to the current adapter_khz value
instead of some "low default"?


> It would still be valid ADIv5 if we applied this patch to the drivers,
> but I suspect making per-target tweaks is a slippery slope of
> badness...

Yep. I think it's likely the frequency should be set to the
user-specified values on all drivers automatically before init. And an
appropriate switch or reset sequence should be initiated by the higher
levels, not from inside the drivers. Probably if nrf51 works with
several line resets before jtag2swd it'd be ok to have it that way for
all the targets.

-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:[email protected]

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to