Le vendredi 23 mars 2007 08:59, Spidernet Lists a écrit :
> Hi,
> Is it normal that when i am running the "Blink" application. The Leds
> are blinking BUT does the CPU enter the "sleep mode" and never gets out
> of this. I am using GDB to debug and when i do the Run coomand,, the
> process keeps running and leds keep toggling at the specified rate. But
> if I hit the "Stop" Button, the program stops in the
> /chips/atm128/McuSleepC.nc line 119 which says:
> asm volatile ("sleep");
> Does this mean it is alright and as no other "event" is occuring in the
> "Blink" application, the controller should go to the "sleep" mode.
> Hence, the behaviour is normal
I would say that it's perfectly normal behavior. The node spends most of it's
time in sleep state, but when he is in the timer function which is switching
on/off the LEDs, which is performed very quickly. So your probability to stop
it during this timer call are very small. I would also say that if you use
gdb stepping from there you may miss some timers/interrupts (not really
shure about this ) or not enter those functions.
> OR
>
> Is there something wrong in my configuration????
>
if you want to stop your program in the timer function or something else you
should use breakpoints ...
HTH,
Aurélien
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help