On 10/28/05, Thiagraj Peri Natraj <[EMAIL PROTECTED]> wrote:
> Hi all,
> I am using micaz mote, and have problem in
> debugging tinyos application with JTAG ICE mkII. I had
> built the new version of avarice from the avarice CVS
> which supports mkII.
>
> AVARICE_ARGS='--mkII --jtag /dev/com1'
>
> By following the steps given in
> http://www.tinyos.net/tinyos-1.x/doc/nesc/nesc-debugging.html
>
> >ice-gdb build/micaz/main.exe
>
> avarice first starts identifies mkII device, then gdb
> starts and is connected succesfully. Now when I try to
> set a breakpoint in Blink application
> (gdb)b *BlinkM$Timer$fired
> ---says breakpoint is set and giving
> (gdb)c
> Continuing
> cannot read program counter
> cannot read program counter
> Watchdog has expired. Target detached.
>
> !!!!! I could not figure out the problem !!!!!
> I even tried with other version of gdb(6.1,6.3)
> ....dint help

I believe it's a bug in the new version of avarice when dealing with
"sleeping" motes. The easy workaround is to comment out the
  asm volatile("sleep")
instruction in __nesc_atomic_sleep() in tos/platform/avrmote/avrhardware.h.

Remember to uncomment this out before building a "real" version, at
least if you care about power usage/battery lifetime :-)

David Gay

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to