Hello, Forwarding this email on behalf of Pavel.
-- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:[email protected]
--- Begin Message ---Hello Paul, I am not sure if that is case for RPi based SWD but for FTDI based JTAG next patch is required to support nRF51. Problem is, that nRF51 uses non standard initial sequence which required some clock pulses to reset device and switch to SWD mode. We successfully use simple modification bellow on more our interfaces developed for local projects (i.e. JT_USB http://pikron.com/pages/products/accessories.html and SWD_USB build for some micro size nRF51 projec). The solution is not clean, there should be some variable to select on per target basis number of initial pulses, because original OpenOCD sequence is what is required by SWD standard. But to do this generic way would require that SWD support is not inlined in each interface separately. I am sending offlist because OpenOCD list seem to be members only last time I have checked and even that I have SF.net account I am not prepared to receive whole OpenOCD traffic at this time. I am already in too many projects that I strive to not register substription to more. Best wishes, Pavel Pisa e-mail: [email protected] www: http://cmp.felk.cvut.cz/~pisa university: http://dce.fel.cvut.cz/ company: http://www.pikron.com/ diff --git a/src/jtag/swd.h b/src/jtag/swd.h index d6746dd..3da836e 100644 --- a/src/jtag/swd.h +++ b/src/jtag/swd.h @@ -75,10 +75,16 @@ static const unsigned swd_seq_line_reset_len = 51; * already in SWD mode. */ static const uint8_t swd_seq_jtag_to_swd[] = { + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /*initial clenup*/ + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /*initial clenup second time */ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7b, 0x9e, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, }; -static const unsigned swd_seq_jtag_to_swd_len = 118; +static const unsigned swd_seq_jtag_to_swd_len = 118 + 192 + 192; /** * SWD-to-JTAG sequence.
--- End Message ---
------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/
_______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
