On 4/27/07, Philip Levis <[EMAIL PROTECTED]> wrote:
I found the bug. Somehow, a checkin was lost when cutting the RPM. 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
Thanks, it seems to work fine now. Romain _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
