Allright, I have already changed that misleading warning as it was also
misleading for me :-)
Thank you for testing and reporting it works! What is the platform?
Windows? :-)
I am planning to test other stuff and make a release so it can be included
into openocd submodule infrastructure, please search and report potential
bugs :-) Akos found already two :-)
Thanks!!! :-)
Tomek
--
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
On Jul 6, 2012 6:45 PM, "Freddie Chopin" <[email protected]> wrote:
> 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<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/**001010111010000000010100011101**11).
>> 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/**111100000000000000000000010000**11).
>> SWD_I: swd_dp_write(swdctx=@**0000000000322a30, operation=SWD_OPERATION_*
>> *EXECUTE, a
>> ddr=0x0, *data=0x1E/**000000000000000000000000000111**10).
>> SWD_I: swd_dp_read(swdctx=@**0000000000322a30,
>> operation=SWD_OPERATION_**EXECUTE,
>> ad
>> dr=0x4, **data=0xF0000041/**111100000000000000000000010000**01).
>> SWD_I: swd_dp_write(swdctx=@**0000000000322a30, operation=SWD_OPERATION_*
>> *EXECUTE, a
>> ddr=0x4, *data=0x50000000/**010100000000000000000000000000**00).
>> SWD_I: swd_dp_read(swdctx=@**0000000000322a30,
>> operation=SWD_OPERATION_**EXECUTE,
>> ad
>> dr=0x4, **data=0xF0000040/**111100000000000000000000010000**00).
>> SWD_I: swd_dp_read(swdctx=@**0000000000322a30,
>> operation=SWD_OPERATION_**EXECUTE,
>> ad
>> dr=0x4, **data=0xF0000040/**111100000000000000000000010000**00).
>> SWD_I: swd_dp_write(swdctx=@**0000000000322a30, operation=SWD_OPERATION_*
>> *EXECUTE, a
>> ddr=0x4, *data=0x50000001/**010100000000000000000000000000**01).
>> SWD_I: swd_dp_read(swdctx=@**0000000000322a30,
>> operation=SWD_OPERATION_**EXECUTE,
>> ad
>> dr=0x4, **data=0xF0000041/**111100000000000000000000010000**01).
>> SWD_I: swd_dp_write(swdctx=@**0000000000322a30, operation=SWD_OPERATION_*
>> *EXECUTE, a
>> ddr=0x8, *data=0x0/**000000000000000000000000000000**00).
>> Info : AP INIT COMPLETE
>> SWD_I: swd_ap_write(swdctx=@**0000000000322a30, operation=SWD_OPERATION_*
>> *EXECUTE, a
>> ddr=0x0, *data=0xA2000002/**101000100000000000000000000000**10).
>> SWD_I: swd_ap_write(swdctx=@**0000000000322a30, operation=SWD_OPERATION_*
>> *EXECUTE, a
>> ddr=0x4, *data=0xE000ED00/**111000000000000011101101000000**00).
>> 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/**010000010010111111000010001100**00).
>> SWD_I: swd_ap_read(swdctx=@**0000000000322a30,
>> command=SWD_OPERATION_EXECUTE, addr
>> =0xC, *data=0x412FC230/**010000010010111111000010001100**00).
>> SWD_I: swd_ap_write(swdctx=@**0000000000322a30, operation=SWD_OPERATION_*
>> *EXECUTE, a
>> ddr=0x4, *data=0xE0002000/**111000000000000000100000000000**00).
>> 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/**000000000000000000000010011000**01).
>> SWD_I: swd_ap_read(swdctx=@**0000000000322a30,
>> command=SWD_OPERATION_EXECUTE, addr
>> =0xC, *data=0x261/**000000000000000000000010011000**01).
>> SWD_I: swd_ap_write(swdctx=@**0000000000322a30, operation=SWD_OPERATION_*
>> *EXECUTE, a
>> ddr=0x4, *data=0xE0001000/**111000000000000000010000000000**00).
>> 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/**010000000000000000000000000000**00).
>> SWD_I: swd_ap_read(swdctx=@**0000000000322a30,
>> command=SWD_OPERATION_EXECUTE, addr
>> =0xC, *data=0x40000000/**010000000000000000000000000000**00).
>> 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