Hi there
As part of my debugging efforts, I wrote a "StdOut" module that binds to
the UART and provides various print(f) statements. This works like a
"normal" OS, stuff to be printed is copied to a circular buffer, which is
written to the UART async. (Since this is just a debugging thing, I broke
the usual conventions, copied and don't do a putDone event or similar).
Its like the dbg statement, but it works on the real hardware (which is
really convenient, when I am breaking it). Doing a
StdOut.print("Reached the bogus point in the packet parser\n"); is much
better than outputting to the leds, I must say.
Very nice. Then it occured to me that there might be some sort of
mechanism to do this already in place? Is there? What are you guys doing
when you want to debug on the real hardware and/or interface to stuff that
is really hard to emulate on the pc target?
Thanks,
Mads
--
+----------------------------------------------------------------------+
| Mads Bondo Dydensborg. http://www.diku.dk/users/madsdyd |
| +45 35 32 14 18 |
+----------------------------------------------------------------------+
_______________________________________________
Tinyos-users mailing list
[EMAIL PROTECTED]
http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users