Try this again to the whole list.
Here is the trace. I'm taking a quick look at it right now. I am guessing that having jlink_jtag_handle = 0 is the problem, just trying to figure out how that happened. Dylan (gdb) run -f ../GNUTools/openOCD/newLPM.cfg -c init -c "sleep 200" -f flashAll.script -c "reset run" -c "shutdown" Starting program: /scratch/gnu-arm/bin/openocd -f ../GNUTools/openOCD/newLPM.cfg -c init -c "sleep 200" -f flashAll.script -c "reset run" -c "shutdown" Open On-Chip Debugger 0.2.0-in-development (2009-05-22-09:47) svn:1881 BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS $URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c $ 500 kHz Error: J-Link command EMU_CMD_VERSION failed (-110) Error: J-Link command EMU_CMD_VERSION failed (-110) Program received signal SIGSEGV, Segmentation fault. 0x00a84e85 in jlink_usb_write (jlink_jtag=0x0, out_length=1) at jlink.c:918 /scratch/openocd/src/jtag/jlink.c:918:23443:beg:0xa84e85 (gdb) bt #0 0x00a84e85 in jlink_usb_write (jlink_jtag=0x0, out_length=1) at jlink.c:918 #1 0x00a84f2f in jlink_simple_command (command=1 '\001') at jlink.c:509 #2 0x00a85dbe in jlink_get_version_info () at jlink.c:549 #3 0x00a860f5 in jlink_init () at jlink.c:324 #4 0x00a7f188 in jtag_interface_init (cmd_ctx=0x8830008) at jtag.c:2370 #5 0x00a78cb3 in handle_init_command (cmd_ctx=0x8830008, cmd=0x883e228 "init", args=0x8843344, argc=0) at openocd.c:133 #6 0x00b1e89a in run_command (context=0x8830008, c=0x883e548, words=0x8843340, num_words=1) at command.c:399 #7 0x00b1ebe2 in script_command (interp=0x8830020, argc=1, argv=0xbfc3f8e0) at command.c:126 #8 0x00b130ee in Jim_EvalObj (interp=0x8830020, scriptObjPtr=0x88430a0) at jim.c:8708 #9 0x00b13d51 in Jim_EvalCoreCommand (interp=0x8830020, argc=3, argv=0xbfc3f9a0) at jim.c:10846 #10 0x00b130ee in Jim_EvalObj (interp=0x8830020, scriptObjPtr=0x8843268) at jim.c:8708 #11 0x00b13962 in Jim_CatchCoreCommand (interp=0x8830020, argc=2, argv=0xbfc3fa60) at jim.c:11413 #12 0x00b130ee in Jim_EvalObj (interp=0x8830020, scriptObjPtr=0x883fc68) at jim.c:8708 #13 0x00b17e9f in Jim_EvalExpression (interp=0x8830020, exprObjPtr=0x8844298, exprResultPtrPtr=0xbfc3fbc4) at jim.c:6927 ---Type <return> to continue, or q <return> to quit--- #14 0x00b18c13 in Jim_GetBoolFromExpr (interp=0x8830020, exprObjPtr=0x8844298, boolPtr=0xbfc3fc08) at jim.c:7210 #15 0x00b18d4b in Jim_IfCoreCommand (interp=0x8830020, argc=5, argv=0xbfc3fc70) at jim.c:10297 #16 0x00b130ee in Jim_EvalObj (interp=0x8830020, scriptObjPtr=0x883e9f0) at jim.c:8708 #17 0x00b15294 in JimCallProcedure (interp=0x8830020, cmd=0x883eb98, argc=0, argv=0xbfc3fd70) at jim.c:8857 #18 0x00b134a7 in Jim_EvalObj (interp=0x8830020, scriptObjPtr=0x883e970) at jim.c:8714 #19 0x00b14f0f in Jim_Eval_Named (interp=0x8830020, script=0x883e5b0 "init", filename=0xb41eeb "command.c", lineno=453) at jim.c:8901 #20 0x00b1e7c6 in command_run_line (context=0x8830008, line=0x883e5b0 "init") at command.c:453 #21 0x00b1d029 in parse_config_file (cmd_ctx=0x8830008) at configuration.c:118 #22 0x00a78bc8 in openocd_main (argc=13, argv=0xbfc40034) at openocd.c:268 #23 0x080484b2 in main (argc=Cannot access memory at address 0x1 ) at main.c:39 (gdb) list 913 } 914 915 static inline int usb_bulk_write_ex(usb_dev_handle *dev, int ep, 916 char *bytes, int size, int timeout) 917 { 918 return usb_bulk_with_retries(&wrap_usb_bulk_write, 919 dev, ep, bytes, size, timeout); 920 } 921 922 static inline int usb_bulk_read_ex(usb_dev_handle *dev, int ep, (gdb) p wrap_usb_bulk_write $1 = {int (usb_dev_handle *, int, char *, int, int)} 0xa851f0 <wrap_usb_bulk_write> (gdb) p dev No symbol "dev" in current context. (gdb) p &wrap_usb_bulk_write $2 = (int (*)(usb_dev_handle *, int, char *, int, int)) 0xa851f0 <wrap_usb_bulk_write> (gdb) up #1 0x00a84f2f in jlink_simple_command (command=1 '\001') at jlink.c:509 /scratch/openocd/src/jtag/jlink.c:509:13195:beg:0xa84f2f (gdb) list 504 int result; 505 506 DEBUG_JTAG_IO("0x%02x", command); 507 508 usb_out_buffer[0] = command; 509 result = jlink_usb_write(jlink_jtag_handle, 1); 510 511 if (result != 1) 512 { 513 LOG_ERROR("J-Link command 0x%02x failed (%d)", command, result); (gdb) p jlink_jtag_handle $3 = (jlink_jtag_t *) 0x0 _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development