On Fri, Jan 25, 2013 at 6:54 AM, Mahavir Jain <[email protected]> wrote: > 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?
Hello Mahavir :-) I am happy to hear that thinks are working now! :-) Regarding the signal - can you please remove the signal name from the config and run the program and again dump the error message with the new code here? I think the message should be more verbose - it should say who is shouting an error and what is the exact cause, unlike previous time where there was only information about missing signal.. > 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) Sure you can: 1. LibSWD inherits verbosity level from the OpenOCD. If you set lower/higher verbosity level in OpenOCD then LibSWD should change its verbosity level accordingly. When the code is intergrated to OpenOCD master I will send a patch that lowers the translation of debug levels as you are not the first person that asked for it :-) 2. After target is initialized you can put "libswd loglevel n" command where n=[0..6] to set desired debug level of LibSWD itself. See help for more information. LibSWD can even help you track the bitstream :-) >From my testing debug level does not affect efficiency at all, because at the moment the largers bottleneck is the USB and the ft2232 driver organization. When changes are accepted and integrated into OpenOCD I will start working on LibSWD+MPSSE driver integration in OpenOCD which should increase efficency a lot :-) > 2. Subsequent run of openocd results in following: > 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! Reset is still missing as it is hardcoded into JTAG in current OpenOCD design. When changes are integrated I plan to move reset into Interface layer and things should start working :-) Please report all issues, problems and ideas on the http://libswd.sf.net Ticket System so we have them documented and then fixed :-) Best regards :-) Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info ------------------------------------------------------------------------------ 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
