Hi Tomek,
That did the trick! I should have checked it earlier before shouting
here :( RnW interface_signal was missing in config file. I am not
entirely sure of its purpose though?
------------
Debug: 188 148 signal.c:42 oocd_interface_signal_find(): Interface
signal - searching for 'RnW' signal...
Debug: 189 148 signal.c:50 oocd_interface_signal_find(): Interface
signal - not defined (yet?).
Error: 190 148 ft2232.c:679 ft2232_bitbang(): Requested signal not found
on this interface!
------------
Couple of more questions:
1. Output is too verbose, is there an easy way to disable it? This
affect image load operation.
21708 bytes written at address 0x00100000
176 bytes written at address 0x20000000
downloaded 21884 bytes in 87.741547s (0.244 KiB/s)
^^^^^^^^^^^
2. Subsequent run of openocd results in following:
Debug: 289 223 swd_libswd.c:295 libswd_drv_mosi_8(): OpenOCD's
libswd_drv_mosi_8(libswdctx=@0x9c96a98, cmd=@0x9c96b90, data=0x00,
bits=1, nLSBfirst=0x00)
Debug: 290 223 ft2232.c:773 ft2232_transfer():
ft2232_transfer(device=@(nil), bits=1, mosidata=@0x81e06e4,
misodata=@0x81e06ec, nLSDfirst=0)
LIBSWD_P: libswd_drv_transmit(libswdctx=@0x9c96a98, cmd=@0x9c96b90)
bits=1 cmdtype=MOSI_PARITY returns=1 payload=0x00000000 (00000000)
LIBSWD_E: libswd_dp_write(libswdctx=@0x9c96a98,
operation=LIBSWD_OPERATION_EXECUTE, addr=0x4,
*data=0x20/00000000000000000000000000100000) failed:
[LIBSWD_ERROR_ACK_FAULT] got ACK_FAULT response.
Error: 291 226 swd_libswd.c:100
oocd_transport_swd_libswd_queue_dp_write():
oocd_transport_swd_libswd_queue_dp_write(dap=@0x9c851dc, reg=0x4,
data=0x20) error ([LIBSWD_ERROR_ACK_FAULT] got ACK_FAULT response)
I have to manually reset the target for this.
Thanks a lot for help!
Thanks,
Mahavir
On Thu, 2013-01-24 at 05:13 -0800, Tomek CEDRO wrote:
> Hello Mahavir :-)
>
> Do you use latest source code? Please make sure that you clone a fresh
> copy of the repository, as at the end of development some forced
> commits took place.
>
> Anyway this is perfect example that debug messages should be upgraded
> in OpenOCD, what I have proposed and even presented in one commit, I
> guess filename and code line would be also great benefit to the log
> messages :-)
>
> If the problem persist, please attach log messages with debug
> verbosity and the configuration files.
>
> Best regards :-)
> Tomek
>
> On Thu, Jan 24, 2013 at 1:41 PM, Mahavir Jain <[email protected]> wrote:
> > Hi All,
> >
> > I am using OpenOCD with SWD support, from LibSWD port (compiled one from
> > http://repo.or.cz/r/openocd/libswd.git git repo) and using KT-Link
> > hardware adapter for testing SWD interface on Cortex-M3 custom board but
> > finding below issue:
> >
> > Log:
> > ===
> > Open On-Chip Debugger 0.7.0-dev-ga21589d-dirty (2012-12-12-15:29)
> > Licensed under GNU GPL v2
> > For bug reports, read
> > http://openocd.sourceforge.net/doc/doxygen/bugs.html
> > Info : Transport - autoselecting 'swd' as the only option for
> > 'ft2232_swd' interface.
> > Info : Transport - interface 'ft2232_swd' defines its own
> > 'oocd_feature_arm_dap' features.
> > Info : Transport - using 'oocd_feature_arm_dap' features of the
> > 'ft2232_swd' interface...
> > adapter speed: 1000 kHz
> > adapter_nsrst_delay: 100
> > cortex_m3 reset_config sysresetreq
> > sh_load
> > Info : KT-LINK SWD-Mode initialization complete...
> > Info : max TCK change to: 30000 kHz
> > Info : clock speed 1000 kHz
> > LIBSWD_N: Using libswd 0.5 (http://libswd.sf.net)
> > LIBSWD_N: (c) Tomasz Boleslaw CEDRO (http://www.tomek.cedro.info)
> > Info : New SWD context initialized at 0x0x828a4d0
> > LIBSWD_I: Executing libswd_dap_activate(libswdctx=@0x828a4d0,
> > operation=LIBSWD_OPERATION_EXECUTE)
> > Error: Requested signal not found on this interface!
> > Error: libswd_dap_detect() error -35 (undefined error)
> > in procedure 'transport'
> > in procedure 'init'
> >
> > Any idea what above error reflects, and possible reason for this?
> >
> > Thanks,
> > Mahavir
> >
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel