On Thu, Jul 17, 2014 at 12:05:48PM +1000, Angus Gratton wrote: > Hacked the swd.h header to send 200 high cycles as part of the > JTAG->SWD sequence, and hacked the ftdi.c driver to send at 1MHz > (formerly 1kHz), then tried 150kHz. Nothing changed.
Turns out this works. I hadn't been hard power cycling the MCU in between tests, and some of the incomplete sequences leave the debug unit in a non-functioning state. Diff for the hack is here (both changes appear necessary): https://gist.github.com/projectgus/224f06d0276affc69826 Next step is to try and work out if this can be put into the nrf51822 TCL config file somehow as a custom init sequence (anyone have any ideas?) 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... - Angus ------------------------------------------------------------------------------ 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
