W dniu 2012-07-06 16:30, Tomek CEDRO pisze:
> Warning is only showed once on signal creation and it means there is no
> signal by that name defined so we can define it.

A bit misleading (;

> Please take a look at http://stm32primer2swd.sf.net on how to create a
> target :-)

I've changed:
swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_CPUTAPID
to:
swd newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf 
-expected-id $_CPUTAPID

AND IT WORKS!

It's pretty slow (doing "step" takes a few seconds and uses like a 
milion SWD transactions) and I can't use "reset" commands:

>> reset
> invalid command name "jtag"
>
> in procedure 'reset'
>>

But we're on a right track as there is a communication!

> Ps/2: the semester is almost finished with success, although I have some
> other tasks, I will find some time to finish the libswd and openocd
> soon, please report bugs on project website ticket system, thanks :-)

We all hope to see SWD soon (; It doesn't need to be super-fast at the 
beginning, the speed will improve, but after the main code is merged 
into OpenOCD it will be new era (;

If anyone would like a binary I could provide this one I'm using.

> >openocd -f interface/jlp2t-swd.cfg -f target/lpc1768.cfg
> Open On-Chip Debugger 0.5.0-dev (2012-04-14-14:24)
> Licensed under GNU GPL v2
> For bug reports, read
>         http://openocd.berlios.de/doc/doxygen/bugs.html
> Info : only one transport option; autoselect 'swd'
> Warn : Interface signal LED not found.
> Warn : Interface signal SRST not found.
> Warn : Interface signal SRSTin not found.
> Warn : Interface signal CLK not found.
> Warn : Interface signal MOSI not found.
> Warn : Interface signal MISO not found.
> Warn : Interface signal nSWDsel not found.
> adapter_nsrst_delay: 200
> 10 kHz
> Info : KT-LINK SWD-Mode initialization complete...
> Info : clock speed 10 kHz
> SWD_N: Using libswd master-GIT-devel (http://libswd.sf.net)
> SWD_N: (c) Tomasz Boleslaw CEDRO (http://www.tomek.cedro.info)
> Info : New SWD context initialized at 0x0000000000322a30
> SWD_I: Executing swd_dap_activate(swdctx=@0000000000322a30, 
> operation=SWD_OPERAT
> ION_EXECUTE)
> SWD_I: Executing swd_dap_reset(swdctx=@0000000000322a30, 
> operation=SWD_OPERATION
> _EXECUTE)
> SWD_I: Executing swd_dp_read_idcode(swdctx=@0000000000322a30, 
> operation=SWD_OPER
> ATION_EXECUTE)
> SWD_I: swd_dp_read_idcode(swdctx=@0000000000322a30, 
> operation=SWD_OPERATION_EXEC
> UTE, **idcode=0x2BA01477/00101011101000000001010001110111).
> Info : SWD transport initialization complete. Found IDCODE=0x2BA01477.
> Info : Selecting SWD transport command set.
> SWD_I: swd_dp_read(swdctx=@0000000000322a30, operation=SWD_OPERATION_EXECUTE, 
> ad
> dr=0x4, **data=0xF0000043/11110000000000000000000001000011).
> SWD_I: swd_dp_write(swdctx=@0000000000322a30, 
> operation=SWD_OPERATION_EXECUTE, a
> ddr=0x0, *data=0x1E/00000000000000000000000000011110).
> SWD_I: swd_dp_read(swdctx=@0000000000322a30, operation=SWD_OPERATION_EXECUTE, 
> ad
> dr=0x4, **data=0xF0000041/11110000000000000000000001000001).
> SWD_I: swd_dp_write(swdctx=@0000000000322a30, 
> operation=SWD_OPERATION_EXECUTE, a
> ddr=0x4, *data=0x50000000/01010000000000000000000000000000).
> SWD_I: swd_dp_read(swdctx=@0000000000322a30, operation=SWD_OPERATION_EXECUTE, 
> ad
> dr=0x4, **data=0xF0000040/11110000000000000000000001000000).
> SWD_I: swd_dp_read(swdctx=@0000000000322a30, operation=SWD_OPERATION_EXECUTE, 
> ad
> dr=0x4, **data=0xF0000040/11110000000000000000000001000000).
> SWD_I: swd_dp_write(swdctx=@0000000000322a30, 
> operation=SWD_OPERATION_EXECUTE, a
> ddr=0x4, *data=0x50000001/01010000000000000000000000000001).
> SWD_I: swd_dp_read(swdctx=@0000000000322a30, operation=SWD_OPERATION_EXECUTE, 
> ad
> dr=0x4, **data=0xF0000041/11110000000000000000000001000001).
> SWD_I: swd_dp_write(swdctx=@0000000000322a30, 
> operation=SWD_OPERATION_EXECUTE, a
> ddr=0x8, *data=0x0/00000000000000000000000000000000).
> Info : AP INIT COMPLETE
> SWD_I: swd_ap_write(swdctx=@0000000000322a30, 
> operation=SWD_OPERATION_EXECUTE, a
> ddr=0x0, *data=0xA2000002/10100010000000000000000000000010).
> SWD_I: swd_ap_write(swdctx=@0000000000322a30, 
> operation=SWD_OPERATION_EXECUTE, a
> ddr=0x4, *data=0xE000ED00/11100000000000001110110100000000).
> SWD_W: swd_drv_transmit(swdctx=@0000000000322a30, cmd=@00000000003577f0): 
> SWD_AC
> K_WAIT detectd!
> SWD_I: swd_dp_read(swdctx=@0000000000322a30, operation=SWD_OPERATION_EXECUTE, 
> ad
> dr=0xC, **data=0x412FC230/01000001001011111100001000110000).
> SWD_I: swd_ap_read(swdctx=@0000000000322a30, command=SWD_OPERATION_EXECUTE, 
> addr
> =0xC, *data=0x412FC230/01000001001011111100001000110000).
> SWD_I: swd_ap_write(swdctx=@0000000000322a30, 
> operation=SWD_OPERATION_EXECUTE, a
> ddr=0x4, *data=0xE0002000/11100000000000000010000000000000).
> SWD_W: swd_drv_transmit(swdctx=@0000000000322a30, cmd=@0000000000357f00): 
> SWD_AC
> K_WAIT detectd!
> SWD_I: swd_dp_read(swdctx=@0000000000322a30, operation=SWD_OPERATION_EXECUTE, 
> ad
> dr=0xC, **data=0x261/00000000000000000000001001100001).
> SWD_I: swd_ap_read(swdctx=@0000000000322a30, command=SWD_OPERATION_EXECUTE, 
> addr
> =0xC, *data=0x261/00000000000000000000001001100001).
> SWD_I: swd_ap_write(swdctx=@0000000000322a30, 
> operation=SWD_OPERATION_EXECUTE, a
> ddr=0x4, *data=0xE0001000/11100000000000000001000000000000).
> SWD_W: swd_drv_transmit(swdctx=@0000000000322a30, cmd=@0000000000358610): 
> SWD_AC
> K_WAIT detectd!
> SWD_I: swd_dp_read(swdctx=@0000000000322a30, operation=SWD_OPERATION_EXECUTE, 
> ad
> dr=0xC, **data=0x40000000/01000000000000000000000000000000).
> SWD_I: swd_ap_read(swdctx=@0000000000322a30, command=SWD_OPERATION_EXECUTE, 
> addr
> =0xC, *data=0x40000000/01000000000000000000000000000000).
> Info : lpc1768.cpu: hardware has 6 breakpoints, 4 watchpoints

4\/3!!

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to