all,

i just checked in a fix for a very subtle bug that i found in the cc2420x stack that caused our favorite behavior: non-deterministic. ("it was working when i left the room, i swear!")

turns out that the innocent compiler warning about datatype overflow in the line

TARGET_DCO_DELTA = TARGET_DCO_KHZ * ACLK_CALIB_PERIOD / ACLK_KHZ,

in the overridden (platforms/shimmers/chips/cc2420x/ and tmicro/) Msp430ClockP.nc was not kidding.

i changed it to look like the boilerplate calculation in the msp430's version,

TARGET_DCO_DELTA = (TARGET_DCO_KHZ / ACLK_KHZ) * ACLK_CALIB_PERIOD,

and the bug is gone.

i also noticed that i missed checking in SpanSerialP.nc under that platform, which is necessary for getting the uart settings right when running this stack (PlatformSerialC.nc points to it, not shimmerserial).

please update when you get a chance:

cd ~/tinyos-main/tos/platforms

svn update

thanks,

steve




_______________________________________________
Shimmer-users mailing list
[email protected]
https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users

Reply via email to