On Jan 29, 2007, at 2:09 PM, Mirko Bordignon wrote:

Hi there,

briefly speaking: I successfully ported TinyOS-2.x to a generic AtMega128 dev board (mainly recycling and adjusting mica-family code), on which I can successfully run all the test applications, from Blink to TestSerial etc etc (believe me that there are no problems in that sense, everything is there up and running).

What is strange, and I wonder if anybody does have any hint, is that I cannot properly use PORTC as an output port: nor using it with the GeneralIO interface and related components, neither manually setting DDRC and PORTC I can get high logic values on any of its pins, while both these two methods -let's say the elegant, proper way and the debug one- work flawlessy on the other ports.

What is even more strange is that, inspecting DDRC and PORTC values via debugging, they pretend to be set respectively to output mode and to high while a multimeter easily reveals they're not (or at least that the output value is low); I double checked the hardware, in fact just compiling and uploading a 5 lines C code which just sets high ouput values on port C (tinkering with the usual DDRC and PORTC) gets the job done, so it is totally a tinyos related trouble. Any idea?

No idea. Have you compared the generated assembly? TinyOS has to make its own versions of a bunch of declarations, it's possible there's a bug somewhere...

Regardless, if you figure out the problem, I'd be happy to check in the fix.

Phil
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to