Mehmet:

I've just run a quick test, and I did not have this issue. I did the following:
- compiled apps/RadioCountToLeds with "make micaz avr-studio-debug",
- started AVR Studio (4.16, build 628),
- opened (with File->open) the main.elf file in
apps/RadioCountToLeds/build/micaz
- added a watch for TOS_NODE_ID (it is a global variable)
- started the program in the debugger

Can you make sure that the variables you're trying to watch are indeed
present in the debug info? The easiest way to do this is checking the
output of avr-readelf -wp build/micaz/main.elf. If they don't show up
there, can you check that they are present (and are globals) in the
app.c file?

Janos

On Sat, Mar 20, 2010 at 6:40 AM, Mehmet Akif Antepli
<[email protected]> wrote:
> Hi Janos,
>
> I have been trying to debug NesC code for MICAz motes through Olimex
> avr-jtag-usb in Avr Studio as you described in your post  mote than two
> yearsa ago :)
>
> https://www.millennium.berkeley.edu/pipermail/tinyos-help/2008-September/036088.html
>
> However, i can not watch global variables. There is always written "Not in
> scope"  in the watch window. Have you ever watch global variables, any idea
> how to do that?
>
>
> Thanks in avdance,
>
> --
> Mehmet Akif Antepli
> Telecommunications Lab. D-217
> Dept. of EEE
> Middle East Technical University
>

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

Reply via email to