On Mon, May 18, 2009 at 10:18 PM, Xiaofan Chen <xiaof...@gmail.com> wrote:
> mc...@ubuntu904:~/Desktop/build/openocd/jlinknew$ openocd -f 
> openocd_lpc2148.cfg
> Open On-Chip Debugger 0.2.0-in-development (2009-05-18-19:51) svn:1809
>
>
> BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS
>
>
> $URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $
> jtag_speed: 15
> force hard breakpoints
> Error: J-Link command EMU_CMD_VERSION failed (-110)
>
> Info : J-Link ARM V6 compiled Dec 03 2007 17:34:18
> Info : JLink caps 0xf7fbf
> Info : JLink max mem block 9992
> Info : Vref = 3.248 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! (3104). Workaround: increase "set remotetimeout" in
> GDB
> Error: usb_bulk_read failed (requested=1, result=-110)
> Error: jlink_tap_execute, wrong result -107 (expected 1)
> Warn : keep_alive() was not invoked in the 1000ms timelimit. GDB alive
> packet not sent! (3012). Workaround: increase "set remotetimeout" in
> GDB
> Error: usb_bulk_read failed (requested=1, result=-110)
> Error: jlink_tap_execute, wrong result -107 (expected 1)
> Warn : keep_alive() was not invoked in the 1000ms timelimit. GDB alive
> packet not sent! (3237). Workaround: increase "set remotetimeout" in
> GDB
> Error: usb_bulk_read failed (requested=1, result=-110)
> Error: jlink_tap_execute, wrong result -107 (expected 1)
> Warn : no tcl port specified, using default port 6666
> Info : accepting 'telnet' connection from 0
>     TapName            | Enabled |   IdCode      Expected    IrLen
> IrCap  IrMask Instr
> ---|--------------------|---------|------------|------------|------|------|------|---------
>  0 | lpc2148.cpu        |    Y    | 0x00000000 | 0x4f1f0f0f | 0x04 |
> 0x01 | 0x0f | 0x0f
>
> mc...@ubuntu904:~/Desktop/build/openocd/jlinknew$ telnet localhost 4444
> Trying ::1...
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> Open On-Chip Debugger
>> scan_chain
>     TapName            | Enabled |   IdCode      Expected    IrLen
> IrCap  IrMask Instr
> ---|--------------------|---------|------------|------------|------|------|------|---------
>  0 | lpc2148.cpu        |    Y    | 0x00000000 | 0x4f1f0f0f | 0x04 |
> 0x01 | 0x0f | 0x0f
>

Same test for the black V3 Jlink.

mc...@ubuntu904:~/Desktop/build/openocd/jlinkold$ openocd -f openocd_lpc2148.cfg
Open On-Chip Debugger 0.2.0-in-development (2009-05-18-19:51) svn:1809


BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS


$URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $
jtag_speed: 15
force hard breakpoints
Error: J-Link command 0x01 failed (-2)
Error: J-Link command EMU_CMD_VERSION failed (-110)

Error: J-Link command 0x01 failed (-2)
Error: J-Link command EMU_CMD_VERSION failed (-110)

Error: J-Link command 0x01 failed (-2)
Error: J-Link command EMU_CMD_VERSION failed (-110)

Info : J-Link initial read failed, don't worry
Info : J-Link JTAG Interface ready
Error: J-Link command 0xdd failed (-2)
Error: J-Link command 0xdf failed (-2)
Warn : keep_alive() was not invoked in the 1000ms timelimit. GDB alive
packet not sent! (9087). Workaround: increase "set remotetimeout" in
GDB
Error: J-Link setting speed failed (-2)
Error: usb_bulk_write failed (requested=6, result=-2)
Error: jlink_tap_execute, wrong result -107 (expected 1)
Error: J-Link command 0xdd failed (-2)
Error: J-Link command 0xde failed (-2)
Error: J-Link command 0xdc failed (-2)
Error: J-Link command 0xde failed (-2)
Error: J-Link command 0xdd failed (-2)
Error: J-Link command 0xdf failed (-2)
Error: usb_bulk_write failed (requested=6, result=-2)
Error: jlink_tap_execute, wrong result -107 (expected 1)
Error: usb_bulk_write failed (requested=6, result=-2)
Error: jlink_tap_execute, wrong result -107 (expected 1)
Warn : no tcl port specified, using default port 6666
Info : accepting 'telnet' connection from 0
     TapName            | Enabled |   IdCode      Expected    IrLen
IrCap  IrMask Instr
---|--------------------|---------|------------|------------|------|------|------|---------
 0 | lpc2148.cpu        |    Y    | 0x00000000 | 0x4f1f0f0f | 0x04 |
0x01 | 0x0f | 0x0f

mc...@ubuntu904:~/Desktop/build/openocd/jlinknew$ telnet localhost 4444
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Open On-Chip Debugger
> scan_chain
     TapName            | Enabled |   IdCode      Expected    IrLen
IrCap  IrMask Instr
---|--------------------|---------|------------|------------|------|------|------|---------
 0 | lpc2148.cpu        |    Y    | 0x00000000 | 0x4f1f0f0f | 0x04 |
0x01 | 0x0f | 0x0f

More error messages. I need to learn more about openocd to carry out more tests.
I have the Olimex LPC-P2148 board at home.

It seemed to me that different Jlink version may need different codes
to deal with.


-- 
Xiaofan http://mcuee.blogspot.com
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to