On May 1, 2007, at 6:58 AM, [EMAIL PROTECTED] wrote:

hi

i have read the new tutorial (Lesson 11) about Tossim, but i meet a problem.

It seems that event Timer.fired() does't work.(i can see the "Boot....",but i can't see"RadioCountToLedsC:...." as expected in the "RadioCountToLeds")

by the way, i use the tinyos2.0.1

Any help is appreciate!


From April 27:

----

The bug is in tos/chips/atm128/atm128_sim.h; this is the fix:

22,23c22,23
< #define _SFR_IO8(io_addr) _MMIO_BYTE((io_addr) + 0x20)
< #define _SFR_IO16(io_addr) _MMIO_WORD((io_addr) + 0x20)
---
> #define _SFR_IO8(io_addr) _MMIO_BYTE((io_addr) )
> #define _SFR_IO16(io_addr) _MMIO_WORD((io_addr) )


That is, the _SFR macros should not add 0x20. When they do so, then the timer hardware emulation breaks. The timer system becomes confused with the overflow settings of the timer, such that it thinks the counter does not reset on compare when it actually does.

----


Phil



_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to