On Mar 9, 2006, at 7:21 PM, Avinash Sridharan wrote:
Hi Phil,
There's a bug in the beta that prevents you from simulating more than
100 nodes. It's in tos/chips/atm128/sim/atm128hardware.h:
uint8_t atm128RegFile[100][0xa0];
should be
uint8_t atm128RegFile[TOSSIM_MAX_NODES][0xa0];
I thought I had checked the fix into CVS, but it looks like it's not
there yet. I'll check it in today.
If you don't have this fix then the simulation segfaults pretty
quickly. The way I saw it manifest was a node >100 tried to modify
its clock register and instead corrupted the memory for the logging
system, leading TOSSIM to think there were a bazillion output
channels for a dbg statement and segfaulting when it ran off the end
of a length 0 array.
Phil
_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help