I updated to 1933 today and gave my j-links another try loading code
to a STM32.  I tried a v3 v4 and v6 jlink.  The v4 jlink worked
reliably, v3 worked after trying a few times and power cycling
everything.  v6 won't work at all.  I attached the console output of
all three jlink sessions.



On Wed, May 27, 2009 at 6:06 PM, Peter Denison <open...@marshadder.org> wrote:
> On Wed, 27 May 2009, Xiaofan Chen wrote:
>
>> Thanks a lot for the help. I could not connect the TMS470R1A256 IAR
>> Starter Kit properly to J-Link with the script. I have not used your patch
>> yet as it seems more for the debugging part. I want to connect and then
>> reset/halt first.
>>
>>
>> mc...@ubuntu904:~/Desktop/build/openocd/tms470$ openocd -f tms470r1a256.cfg
>> Open On-Chip Debugger 0.2.0-in-development (2009-05-25-21:15) svn:1910
>>
>> BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS
>>
>> $URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $
>> 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)
>>
>> Info : J-Link ARM V6 compiled Apr  1 2009 11:56:10
>> Info : JLink caps 0x19ff7bbf
>> Info : JLink hw version 60000
>> Info : JLink max mem block 8376
>> Info : Vref = 3.132 TCK = 1 TDI = 0 TDO = 0 TMS = 0 SRST = 1 TRST = 1
>>
>> Info : J-Link JTAG Interface ready
>> Warn : keep_alive() was not invoked in the 1000ms timelimit. GDB alive
>> packet not sent! (6118). Workaround: increase "set remotetimeout" in
>> GDB
>> Error: jlink_usb_message failed with result=1)
>> Error: jlink_tap_execute, wrong result -107 (expected 1)
>
> I get this repeated result as well, with a Yellow V6 J-Link, and a
> USR8200 (IXP422) target board:
>
> --------------------------8<--------------------------------
> Open On-Chip Debugger 0.2.0-in-development (2009-05-27-19:22) svn:1932M
>
> BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS
>
> $URL: http://svn.berlios.de/svnroot/repos/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)
>
> Info : J-Link ARM V6 compiled Mar  3 2008 18:04:42
> Info : JLink caps 0x1f7fbf
> Info : JLink hw version 60000
> Info : JLink max mem block 9992
> Info : Vref = 3.313 TCK = 1 TDI = 0 TDO = 1 TMS = 0 SRST = 1 TRST = 1
>
> Info : J-Link JTAG Interface ready
> Warn : keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet 
> not sent! (6211). Workaround: increase "set remotetimeout" in GDB
> Error: jlink_usb_message failed with result=1)
> Error: jlink_tap_execute, wrong result -107 (expected 1)
> ------------------------8<----------------------------------
>
> The offending lines that cause it to break were added in jlink.c by Oyvind
> in r1498. However, according to the docs (RM08001-02, dated June 30,
> 2008 at www.segger.com), they should be correct. Once you've read the TDO
> lines out, read the next byte out, and if it's 0, it's OK, if not, it's an
> error. Sadly, the docs don't go on to explain what an error code of 1
> means.
>
> Mine is consistently reading out a 1 instead of a 0.
>
> As an aside, the new 'jlink hw jtag' command is a good idea, but the
> hardware version read from the adapter always overrides any command line
> value you've put in.
>
> I'm seriously considering ditching the J-Link, and going back to trying to
> get the USBprog to be a fully featured JTAG adapter. It's more work, but
> at least both ends are open source. (Twice as many communities to interact
> with - yay ;)
> _______________________________________________
> Openocd-development mailing list
> Openocd-development@lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/openocd-development
>
(54)$ sudo /usr/local/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-27-16:57) svn:1933


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
Info : J-Link compiled Feb 20 2006 18:20:20 -- Update --
Info : JLink caps 0x3
Info : JLink hw version 30000
Info : Vref = 3.279 TCK = 1 TDI = 0 TDO = 1 TMS = 0 SRST = 1 TRST = 255

Info : J-Link JTAG Interface ready
Info : JTAG tap: stm32.cpu tap/device found: 0x3ba00477 (Manufacturer: 0x23b, 
Part: 0xba00, Version: 0x3)
Info : JTAG Tap/device matched
Info : JTAG tap: stm32.bs tap/device found: 0x06414041 (Manufacturer: 0x020, 
Part: 0x6414, Version: 0x0)
Info : JTAG Tap/device matched
Info : device id = 0x10016414
Info : flash size = 256kbytes
stm32x mass erase complete
Info : Padding image section 0 with 0 bytes
Error: timed out while waiting for target halted
Error: error executing stm32x flash write algorithm
Error: flash writing failed with error code: 0xfffffc7a
Error: error writing to flash at address 0x08000000 at offset 0x00000000 (-902)
(55)$ 
(55)$ 
(55)$ 
(55)$ 
(55)$ 
(55)$ 
(55)$ 
(55)$ 
(55)$ 
(55)$ sudo /usr/local/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-27-16:57) svn:1933


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)

Info : J-Link compiled Feb 20 2006 18:20:20 -- Update --
Info : JLink caps 0x3
Info : JLink hw version 30000
Info : Vref = 3.272 TCK = 1 TDI = 0 TDO = 1 TMS = 0 SRST = 1 TRST = 255

Info : J-Link JTAG Interface ready
Info : JTAG tap: stm32.cpu tap/device found: 0x3ba00477 (Manufacturer: 0x23b, 
Part: 0xba00, Version: 0x3)
Info : JTAG Tap/device matched
Info : JTAG tap: stm32.bs tap/device found: 0x06414041 (Manufacturer: 0x020, 
Part: 0x6414, Version: 0x0)
Info : JTAG Tap/device matched
Warn : target was in unknown state when halt was requested
Info : device id = 0x10016414
Info : flash size = 256kbytes
stm32x mass erase complete
Info : Padding image section 0 with 0 bytes
wrote 6844 byte from file ../BootLoader/source/bl.elf in 0.804921s (8.303416 
kb/s)
wrote 150484 byte from file lpm.bin in 14.385707s (10.215489 kb/s)
Info : JTAG tap: stm32.cpu tap/device found: 0x3ba00477 (Manufacturer: 0x23b, 
Part: 0xba00, Version: 0x3)
Info : JTAG Tap/device matched
Info : JTAG tap: stm32.bs tap/device found: 0x06414041 (Manufacturer: 0x020, 
Part: 0x6414, Version: 0x0)
Info : JTAG Tap/device matched
(56)$ 
(57)$ sudo /usr/local/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-27-16:57) svn:1933


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
Info : J-Link compiled Feb 20 2006 18:20:20 -- Update --
Info : JLink caps 0x3
Info : JLink hw version 40000
Info : Vref = 3.273 TCK = 1 TDI = 0 TDO = 1 TMS = 0 SRST = 1 TRST = 255

Info : J-Link JTAG Interface ready
Info : JTAG tap: stm32.cpu tap/device found: 0x3ba00477 (Manufacturer: 0x23b, 
Part: 0xba00, Version: 0x3)
Info : JTAG Tap/device matched
Info : JTAG tap: stm32.bs tap/device found: 0x06414041 (Manufacturer: 0x020, 
Part: 0x6414, Version: 0x0)
Info : JTAG Tap/device matched
Warn : target was in unknown state when halt was requested
Info : device id = 0x10016414
Info : flash size = 256kbytes
stm32x mass erase complete
Info : Padding image section 0 with 0 bytes
wrote 6844 byte from file ../BootLoader/source/bl.elf in 0.754868s (8.853990 
kb/s)
wrote 150484 byte from file lpm.bin in 14.465284s (10.159291 kb/s)
Info : JTAG tap: stm32.cpu tap/device found: 0x3ba00477 (Manufacturer: 0x23b, 
Part: 0xba00, Version: 0x3)
Info : JTAG Tap/device matched
Info : JTAG tap: stm32.bs tap/device found: 0x06414041 (Manufacturer: 0x020, 
Part: 0x6414, Version: 0x0)
Info : JTAG Tap/device matched
(58)$ 
sudo /usr/local/gnu-arm/bin/openocd -f ../GNls/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-27-16:57) svn:1933


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 impossible return length 0x2d4a
Error: J-Link command EMU_CMD_VERSION failed (-110)

Info : J-Link ARM V6 compiled Aug 28 2007 19:22:02
Info : JLink caps 0x77fbf
Info : JLink hw version 60000
Info : JLink max mem block 9992
Info : Vref = 3.306 TCK = 1 TDI = 0 TDO = 1 TMS = 0 SRST = 1 TRST = 1

Info : J-Link JTAG Interface ready
Error: usb_bulk_read failed (requested=1, result=-110)
Error: jlink_tap_execute, wrong result -107 (expected 1)
Error: usb_bulk_read failed (requested=1, result=-110)
Error: jlink_tap_execute, wrong result -107 (expected 1)
Error: usb_bulk_read failed (requested=1, result=-110)
Error: jlink_tap_execute, wrong result -107 (expected 1)
Error: usb_bulk_read failed (requested=1, result=-110)
Error: jlink_tap_execute, wrong result -107 (expected 1)
Error: Target not examined yet
Runtime error, file "flashAll.script", line 1:
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to