I've encountered a very strange problem with printf library and would like to know if you've noticed this before. This could reveal a potential bug in either printf or the latest tinyos-2.1. Here's the symptom:
I'm writing a application on top of FTSP. It seems that printf is at odds with the nx structure in a mysterious way. If I define my radio message strucuture using nx_struct with nx_uint32_t, etc. as members, the mote will stop to print (or, PrintfClient will stop to print, I can't distinguish which is the case) anything out when some value is assigned to some field in the nx structure for the first time. In other words, from the moment the mote is booted to the moment the nx strcuture is first 'touched', PrintfClient can CORRECTLY print out messages, but it stops once some field in the nx structure is touched. Note the that mote didn't stop after the nx structure is first touched. The LED sequence suggests that the mote is still working correctly, it's just that the printf stops somehow. After I removed the nx prefix from structure as well as its members, then PrintfClient worked as normal throughout my experiment. Any ideas? Best regards, -- Wenjie Zeng
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
