On Fri, 2013-01-25 at 04:19 -0800, Tomek CEDRO wrote: > 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?
Find it below: ============= Debug: 188 17 signal.c:42 oocd_interface_signal_find(): Interface signal - searching for 'RnW' signal... Debug: 189 17 signal.c:50 oocd_interface_signal_find(): Interface signal - not defined (yet?). Error: 190 17 ft2232.c:679 ft2232_bitbang(): Requested signal not found on this interface! LIBSWD_P: libswd_drv_transmit(libswdctx=@0x96f1810, cmd=@0x96f1928) bits=1 cmdtype=MOSI_TRN returns=-35 payload=0x00000000 (00000000) Error: 191 17 swd_libswd.c:240 oocd_transport_swd_libswd_init(): libswd_dap_detect() error -35 (undefined error) Debug: 192 17 command.c:631 run_command(): Command failed with error code -35 User : 193 17 command.c:669 command_run_line(): in procedure 'transport' Debug: 194 17 command.c:631 run_command(): Command failed with error code -4 User : 195 17 command.c:669 command_run_line(): in procedure 'init' > 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 :-) > Okay. > > > 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 :-) Okay, sure! 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
