Hi Andrii,

On Wed, Jul 16, 2014 at 03:27:28PM +0800, Andrii Anpilogov wrote:
> I want to use one of available debuggers. CMSIS-DAP looks really attractive.
> But as it was discussed in this mail list it slow and is not suitable so far 
> for real usage.

I haven't had a lot of luck with nrf51822+CMSIS-DAP and openocd
yet. Andrey did a great job getting initial support in, but flashing
is very slow (as per recent email thread), and stepping seems fairly
slow as well. The slowness is likely CMSIS-DAP-specific not
nrf-specific.

Slow flashing can be worked around by using the mass storage flashing
option, this is fast. So I wouldn't say "not suitable for real usage",
but at the moment I prefer stlink-v2.


> I see a lot of activities around this problem from Angus Gratton, Andreas 
> Fritiofson, Thomas Schmid, Andrey Smirnov, Angus Gratton, Masaki Muranaka and 
> Paul Fertser.
> 
> What debugger tools do you use guys?

I use stlink-v2. :) Specifically, I was originally using a discovery
board but I recently bought this neat little dongle from taobao:

http://item.taobao.com/item.htm?spm=a230r.1.14.160.54AOsM&id=26760288300&ns=1#detail

I'd like to get the mKIT/CMSIS board running though as it's very
compact (at the moment my nrf51822 dev environment is a circus of
wires for serial & SWD.)

> Another candidate is FTDI based debugger.
> This morning I tried it with resistor hack.
> It’s working for stm32f1x but doesn’t work for nRF51 at all.
> I can provide any logs and do tests if anyone can help with this.
> 
> Does anyone has successful experience debugging nrf51 chip with FTDI based 
> tool?

I've had the same experience as you, resistor hack working on other
targets but not nrf51822. Didn't spend much time on it, as it works
against my "have less wire mess" ultimate goal ;).

I put together an swd decoder for sigrok so when I get a chance I will
have a look at the interactions on the wire, see if I can pick
anything obvious. (I'll also release this decoder soon, I just want to
make it a bit less hairy.)

There is also the possibility the resistor value needs to be
different for nrf targets, as mentioned by Paul.


- 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

Reply via email to