I’m trying to get openocd working on Linux. I have the Atmel Sam-Ice, and I’ve build openocd 0.4.0 from source enabling the jlink during configuration. Since I don’t have a config script for the at91samg45-es, I’m using a modified at91samg20-es.cfg file. Here is what I get executing the openocd program. The bulk-read failures don’t look good, yet SOME data is being read from the jtag. Any ideas?
ken@PACALAdev ~ $ openocd -f ~/.openocd.d/interface/jlink.cfg -f .openocd.d/board/at91sam9g45-ek.cfg
Open On-Chip Debugger 0.4.0 (2010-11-29-15:42)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html
trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain
jtag_nsrst_delay: 200
jtag_ntrst_delay: 200
RCLK - adaptive
TapName Enabled IdCode Expected IrLen IrCap IrMask
0 at91sam9g45.cpu Y 0x00000000 0x0792603f 4 0x01 0x0f
Info : J-Link initialization started / target CPU reset initiated
Info : J-Link ARM V8 compiled Sep 30 2010 13:08:47
Info : JLink caps 0xb9ff7bbf
Info : JLink hw version 80000
Info : JLink max mem block 8376
Info : Vref = 3.293 TCK = 1 TDI = 0 TDO = 0 TMS = 0 SRST = 0 TRST = 0
Info : J-Link JTAG Interface ready
Error: usb_bulk_read failed (requested=1, result=0)
Error: jlink_tap_execute, wrong result -107 (expected 1)
Info : RCLK (adaptive clock speed)
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=0)
Error: jlink_tap_execute, wrong result -107 (expected 1)
Command handler execution failed
Warn : jtag initialization failed; try ‘jtag init’ again.