On Sat, May 23, 2009 at 8:49 AM, Dylan Reid <[email protected]> wrote: > static int jlink_get_version_info(void) > > The crazy thing is that sometimes this works. Often enough to be > usable actually. I added a check to jlink_usb_read and it makes it > fail every time. I attached the patch as I think it is the right > thing to do anyways. If you increase JLINK_IN_BUFFER_SIZE to > something big enough, it will keep it functional. > > I don't have any experience with low level jtag interfacing, what is > this code trying to do? Should something other than "J-" be returned > after EMU_CMD_VERSION?
I am seeing the same problem for my V6. Increasing the USB timeout to 5000ms does not help. And this is actually correct as J-Link Linux utility are reporting similar problems. For my V3 J-Link, Segger utility seems to be ok. OpenOCD does still print out errors. But anyway, I think this may not be really important. mc...@ubuntu904:~/Desktop/build/openocd/jlinkv6$ openocd -f myopenocd.cfg Open On-Chip Debugger 0.2.0-in-development (2009-05-25-20:35) svn:1910M BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS $URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $ RCLK - adaptive Error: J-Link command EMU_CMD_VERSION failed (-110) Error: J-Link command EMU_CMD_VERSION impossible return length 0x2d4a Error: J-Link command EMU_CMD_VERSION failed (-110) mc...@ubuntu904:~/Desktop/build/openocd/jlink$ ./start SEGGER J-Link Commander V4.03a ('?' for help) Compiled Feb 2 2009 11:34:21 Updating firmware: J-Link ARM V6 compiled Jan 15 2009 11:58:34 Replacing firmware: J-Link ARM V6 compiled Dec 03 2007 17:34:18 Waiting for new firmware to boot New firmware booted successfully ****** Error: Communication timed out after firmware update DLL version V4.03a, compiled Feb 2 2009 11:34:13 Unable to retrieve firmware info ! S/N : 156007287 OEM : IAR Feature(s) : RDI, FlashDL, GDBFull, FlashBP, JFlash VTarget = 3.248V Info: TotalIRLen = 4, IRPrint = 0x01 WARNING: Identified core does not match configuration. (Found: ARM7, Configured: None) Found 1 JTAG device, Total IRLen = 4: Id of device #0: 0x4F1F0F0F Found ARM with core Id 0x4F1F0F0F (ARM7) ETM V1.2: 1 pairs addr.comp, 0 data comp, 4 MM decs, 1 counters RTCK reaction time is approx. 126ns Using adaptive clocking instead of fixed JTAG speed. J-Link>f Unable to retrieve firmware info ! mc...@ubuntu904:~/Desktop/build/openocd/jlink$ ./start SEGGER J-Link Commander V4.03a ('?' for help) Compiled Feb 2 2009 11:34:21 DLL version V4.03a, compiled Feb 2 2009 11:34:13 Firmware: J-Link compiled Feb 20 2006 18:20:20 -- Update -- Hardware: V3.00 S/N : 3330 OEM : IAR VTarget = 3.272V Info: TotalIRLen = 4, IRPrint = 0x01 WARNING: Identified core does not match configuration. (Found: ARM7, Configured: None) Found 1 JTAG device, Total IRLen = 4: Id of device #0: 0x4F1F0F0F Found ARM with core Id 0x4F1F0F0F (ARM7) ETM V1.2: 1 pairs addr.comp, 0 data comp, 4 MM decs, 1 counters JTAG speed: 5 kHz J-Link>f Firmware: J-Link compiled Feb 20 2006 18:20:20 -- Update -- Hardware: V3.00 mc...@ubuntu904:~/Desktop/build/openocd/jlinkv3$ openocd -f myopenocd.cfg Open On-Chip Debugger 0.2.0-in-development (2009-05-25-20:35) svn:1910M BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS $URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $ RCLK - adaptive Error: J-Link command EMU_CMD_VERSION failed (-110) Info : J-Link compiled Feb 20 2006 18:20:20 -- Update -- Info : JLink caps 0x3 Info : JLink hw version 30000 Info : Vref = 3.270 TCK = 1 TDI = 0 TDO = 0 TMS = 0 SRST = 1 TRST = 255 Info : J-Link JTAG Interface ready Warn : keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (15107). Workaround: increase "set remotetimeout" in GDB Info : JTAG tap: lpc2148.cpu tap/device found: 0x4f1f0f0f (Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4) Info : JTAG Tap/device matched ^C -- Xiaofan http://mcuee.blogspot.com _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
