hello,
i try to program an imote2 device (putting a simple program on it as “Blink”) i am using openocd to deal with the ARM-USB-TINY-H debugger. i tried with openocd 0.6.0 and 0.9.0 and i get the same problem the programmation hangs at : Starting Openocd…
when i try to run :openocd -f interface/ftdi/olimex-arm-usb-tiny-h.cfg -f board/crossbow_tech_imote2.cfg
i get the following which looks okey :
Open On-Chip Debugger 0.9.0 (2016-04-11-10:37)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
adapter speed: 6000 kHz
adapter_nsrst_delay: 260
Info : auto-selecting first available session transport “jtag”. To override use ‘transport select ’.
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 connect_deassert_srst
Info : clock speed 6000 kHz
Info : JTAG tap: imote2.cpu tap/device found: 0x79265013 (mfg: 0x009, part: 0x9265, ver: 0x7)
and it freezes like that until i tape ctrl+c
but when i try to run : make intelmote2 install openocd
i get the following after the compilation succed :
Programming imote2 with binary: build/intelmote2/main.bin.out-100
Starting OpenOCD…
and it hangs like that. when i tape ctrl+c i get the following :
Doing cleanup…
Traceback (most recent call last):
File “/opt/tinyos-2.x/tools/platforms/intelmote2/openocd/imote2-ocd-program.py”, line 163, in
main(sys.argv)
File “/opt/tinyos-2.x/tools/platforms/intelmote2/openocd/imote2-ocd-program.py”, line 105, in main
expect(openocd_proc.stderr, “JTAG device found:”)
File “/opt/tinyos-2.x/tools/platforms/intelmote2/openocd/imote2-ocd-program.py”, line 65, in expect
raise RuntimeError, “Did not receive expected pattern ‘%s’” % pat
RuntimeError: Did not receive expected pattern ‘JTAG device found:’
make: *** [program] Error 1
I am really struggling with this problem, and i am not very used to openocd, could someone help me please ?
Thank you