Hi, On Mon, Jul 15, 2013 at 12:09:30PM +0100, Joel Holdsworth wrote: > 1. I'm having trouble connecting. The only way I can get it to > enumerate the TAPs is if I press the board reset button with the > ribbon cable disconnected, then connect the ribbon, then run openocd. > If I don't follow this procedure, it times out with "Error: couldn't > read enough bytes from FT2232 device (0 < 81)" messages.
That ft2232 driver has some known issues and it's unlikely anybody's interested in debugging it. Please try interface/ftdi/flyswatter2.cfg instead which is using a new rewritten driver ftdi. Also pay attention to your "reset_config". You should set it to match your particular board and adapter. If you have doubts SRST on your adapter works properly, you can use "jtag_reset" command interactively via telnet to verify the functionality with a voltmeter (you should probably do that even though your board's connector lacks srst as it'll be useful for other targets you might eventually meet). Check other JTAG signals as well, your story about disconnecting the cable looks fishy. > 2. My JTAG port doesn't have a SRST pin on it, so I want to use > davinci_wdog_reset. Unfortunately this fails because of a problem with > the mww command. If I call the offending command in isolation (mww > phys 0x01c21c28 0x00004000) with the debug level set to three, I get > the following messages printed: > > Debug: 407 43677 command.c:145 script_debug(): command - ocd_command > ocd_command type ocd_mww phys 0x01c21c28 0x00004000 > Debug: 408 43677 command.c:145 script_debug(): command - mww ocd_mww > phys 0x01c21c28 0x00004000 > Debug: 410 43677 command.c:631 run_command(): Command failed with > error code -304 > User : 411 43678 command.c:669 command_run_line(): in procedure 'mww' git grep suggests me -304 means ERROR_TARGET_NOT_HALTED, so you probably just need to add 'halt' before your 'mww' command. HTH -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:[email protected] ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
