Hi guys,
I found what the problem was. 8)
Ugly and stupid…
I had in FTDI config:
ftdi_layout_init 0x0008 0x003f
which configure TDO as output pin and tight it to the ground.
I’ve found it when check all signals more careful. And didn’t notice it
initially on oscilloscope because my trigger level was quite high and nRF51 is
capable to pull SWDIO high some time.
Do initial communication looked fine.
So all is good now.
http://openocd.zylin.com/#/c/2223/ works ok.
Download speed is ~7kb/s.
Here is final openocd config:
-------------------------------------------------------------
interface ftdi
ftdi_vid_pid 0x0403 0x6010
ftdi_channel 0
ftdi_layout_init 0x0008 0x003b
ftdi_layout_signal SWD_EN -data 0
ftdi_layout_signal SWDIO_OE -ndata 0x0010
transport select swd
source [find target/nrf51.cfg
-------------------------------------------------------------
SWDIO_OE connected to ADBUS4.
M74VHC1G is used as buffer.
Thanks for help!
If anyone needs to test code related to CMSIS-DAP or FTDI I will glad to help.
We have bunch of self made CMCSIS-DAP adapters and couple from mBED.
Regards.
On 21 Jul, 2014, at 10:26 am, Andrii Anpilogov <[email protected]> wrote:
> Hi Angus,
>
> On 21 Jul, 2014, at 6:25 am, Angus Gratton <[email protected]> wrote:
>
>> Hi Andrii,
>>
>> On Sun, Jul 20, 2014 at 02:47:02PM +0800, Andrii Anpilogov wrote:
>>> Label on the chip is:
>>> N51822
>>> QFAAC0
>>> 1322AW
>>
>> We have the same C0 silicon revision then.
>>
>> I went back and triple checked, running openocd clean built from
>> http://openocd.zylin.com/#/c/2223/ (commit
>> e10810b781dad21ddde22b8177d71a5a13456c5c) with my Olimex
>> ARM-USB-Tiny-H and everything definitely just works - 'reset init',
>> gdb, 'program blah.bin', etc.
>>
> git pull ssh://[email protected]:29418/openocd refs/changes/23/2223/1
> doesn’t work for me at all:
> Debug: 229 87 ftdi.c:981 ftdi_swd_run_queue(): JUNK DP read reg 0 = ffffffff
------------------------------------------------------------------------------
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