Openocd imote2.cpu: IR capture error;

Hi All!

I installed openocd 0.6.0 following the instructions I found in

http://wiki.eluaproject.net/OpenOCDinLinux

Then I tried to run

sudo openocd -f /usr/local/share/openocd/scripts/interface/olim-arm-usb-tiny-h.cfg -f /usr/local/share/openocd/scripts/board/crossbow_tech_imote2.cfg

and I got the messages:

Info : JTAG tap: imote2.cpu tap/device found: 0x06e5d093 (mfg: 0x049, part: 0x6e5d, ver: 0x0)

Warn : JTAG tap: imote2.cpu UNEXPECTED: 0x06e5d093 (mfg: 0x049, part: 0x6e5d, ver: 0x0)

Error: JTAG tap: imote2.cpu expected 1 of 3: 0x49265013 (mfg: 0x009, part: 0x9265, ver: 0x4)

Error: JTAG tap: imote2.cpu expected 2 of 3: 0x79265013 (mfg: 0x009, part: 0x9265, ver: 0x7)

Error: JTAG tap: imote2.cpu expected 3 of 3: 0x89265013 (mfg: 0x009, part: 0x9265, ver: 0x8)

Error: Trying to use configured scan chain anyway…

Error: imote2.cpu: IR capture error; saw 0x05 not 0x01

Warn : Bypassing JTAG setup events due to errors

then I added the line

set CPUTAPID 0x06e5d093 to the file /openocd/scripts/board/crossbow_tech_imote2.cfg

according to what I found here: http://www.tincantools.com/wiki/OpenOCD … onfig_File

also I added the line

adapter_khz 6000

to the file: olimex-arm-usb-tiny-h.cfg

according to what I read here: http://www.tincantools.com/wiki/OpenOCD … t_Selected

Now I have this:

Info : only one transport option; autoselect ‘jtag’

6000 kHz

adapter_nsrst_delay: 260

jtag_ntrst_delay: 250

Info : imote2.cpu: hardware has 2 breakpoints and 2 watchpoints

adapter_nsrst_delay: 800

trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain

Info : max TCK change to: 30000 kHz

Info : clock speed 6000 kHz

Info : JTAG tap: imote2.cpu tap/device found: 0x06e5d093 (mfg: 0x049, part: 0x6e5d, ver: 0x0)

Error: imote2.cpu: IR capture error; saw 0x05 not 0x01

Warn : Bypassing JTAG setup events due to errors

It says in http://www.mail-archive.com/openocd-dev … 12885.html that this error, is due to too high JTAG frequency,

I tried with different frequencies, but I’m getting always the same result:

Error: imote2.cpu: IR capture error; saw 0x05 not 0x01

lsbusb:

Bus 001 Device 025: ID 15ba:002a Olimex Ltd.

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

dmesg:

[90070.448018] usb 1-4: new high speed USB device using ehci_hcd and address 25

[90070.589789] usb 1-4: New USB device found, idVendor=15ba, idProduct=002a

[90070.589795] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3

[90070.589799] usb 1-4: Product: Olimex OpenOCD JTAG ARM-USB-TINY-H

[90070.589803] usb 1-4: Manufacturer: Olimex

[90070.589807] usb 1-4: SerialNumber: OLVG13P뜫

[90070.589936] usb 1-4: configuration #1 chosen from 1 choice

If someone could suggest any advice I would be very grateful.

Thanks in advance.

Joc