For those discontented with gdb and in desperate need of visual source-level debugging support for TinyOS: I have added support for debugging iris applications using AVR Studio.
To use it, first download and install AVR Studio ( http://www.atmel.com/dyn/Products/tools_card.asp?tool_id=2725 ). Then, check out the CVS head, or drop the file avr-studio-debug.extra ( http://tinyos.cvs.sourceforge.net/*checkout*/tinyos/tinyos-2.x/support/m ake/avr/avr-studio-debug.extra ) into support/make/avr/ in the TinyOS 2.1 release tree. To compile an ELF image that can be loaded with AVR Studio, type make iris avr-studio-debug Finally, launch AVR Studio, open the main.elf file under build/iris/. Choose your debug platform (simulator or JTAG emulator) and your device (ATMega1281 for iris) then click Finish. If everything goes well, AVR Studio will open the source code of RealMainP.nc and position the cursor at the entry point of the program and you are ready to visually debug. Beside the iris mote, this should work with mica2/micaz as well. Just substitute iris above with your favorite AVR-based mote platform. Janos
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
