New IT forum
26 June 2022, 04:35:10 pm *
Welcome, %1$s. Please login or register.

: CubieBoard 2 and Cubietruck both now in stock.
 
Pages: [1]

Author Topic: Cannot get openocd to work with imote 2  (Read 6764 times)

desperate

  • Newbie
  • *
  • Posts: 5
Cannot get openocd to work with imote 2
« on: 31 December 2012, 08:07:04 am »

Hello.
I've been trying to get openocd to work with the intelmote 2 I have but nothing seems to be working. When I type in
openocd -f interface/olimex-jtag-tiny.cfg -f board/crossbow_tech_imote2.cfg
the program displays the following and then stops working
Open On-Chip Debugger 0.7.0-dev-00079-g08ddb19 (2012-12-22-11:45)
Licensed under GNU GPL v2
For bug reports, read
   http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
adapter speed: 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 : device: 4 "2232C"
Info : deviceID: 364511236
Info : SerialNumber: FTVU2IXR A
Info : Description: Olimex OpenOCD JTAG TINY A
Info : clock speed 6000 kHz
Info : JTAG tap: imote2.cpu tap/device found: 0x79265013 (mfg: 0x009, part: 0x9265, ver: 0x7)

I have tried reducing the speed, but it doesn't work. I have an Olimex jtag tiny cable, I'm using both Ubuntu 11.04 and 9.04 in VMware player.
Also, when I try to run, say the blink program on the imote, the program also stops working after displaying the following:
Programming imote2 with binary: build/intelmote2/main.bin.out
Starting OpenOCD...
Connecting to OpenOCD...
Halting device...
Erasing flash...

When I press ctrl+c, i get the following error
File "/usr/lib/python2.6/telnetlib.py", line 304, in read_until
    while not self.eof and select.select(*s_args) == s_reply:
KeyboardInterrupt
make: *** [program] Error 1

Please does anyone know the solution to this problem, I've been trying to fix this for almost two weeks, and as my name suggests, I'm desperate.
Thanks.
p.s. i followed the instructions here: http://talhaobaid.blogspot.ca/2010/06/imote2-with-camera-setup-imb400-over.html
Logged

Confusticated

  • New IT customer
  • Hero Member
  • *
  • Posts: 663
Re: Cannot get openocd to work with imote 2
« Reply #1 on: 31 December 2012, 07:35:28 pm »

Have you tried running OpenOCD natively (on either Windows or preferably Linux)  ?
Logged
Advocatus Diaboli - My agenda is not to give you the answer, but to guide your thoughts so you derive it for yourself!

desperate

  • Newbie
  • *
  • Posts: 5
Re: Cannot get openocd to work with imote 2
« Reply #2 on: 02 January 2013, 09:31:17 pm »

Hello.
No, I haven't tried that. I'm new to this, so I don't even know how to do that. Do you mind explaining what I have to do?
Thanks.
Logged

Confusticated

  • New IT customer
  • Hero Member
  • *
  • Posts: 663
Re: Cannot get openocd to work with imote 2
« Reply #3 on: 02 January 2013, 11:34:17 pm »

Quote
Do you mind explaining what I have to do?
Install Ubuntu on your PC, or install OpenOCD for Windows.
Google for a how to...either answer is too long to write here (and has been better done than I could).
Don't forget to search this forum for issues\solutions.
Logged
Advocatus Diaboli - My agenda is not to give you the answer, but to guide your thoughts so you derive it for yourself!

desperate

  • Newbie
  • *
  • Posts: 5
Re: Cannot get openocd to work with imote 2
« Reply #4 on: 03 January 2013, 02:01:56 am »

Ok. Thank you.
I thought I should mention, when I tried using a telnet debugger, I got the message "Bad value captured during DR or IR scan", if that makes any difference.
Thanks.
Logged

desperate

  • Newbie
  • *
  • Posts: 5
Re: Cannot get openocd to work with imote 2
« Reply #5 on: 03 January 2013, 09:49:27 pm »

It turns out that the problem was with the Imote device itself. It seems that the imotes with id number 07-28-09I work with openocd and those with the id number 10-11-09I don't.... Thanks for your help! :D
Logged
Pages: [1]
 
 

Powered by MySQL Powered by PHP SMF 2.0.10 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!