I have used it in TinyOS1.x. It took me a while to get it doing. I can't remember exactly what I had to do to get it to work. I have a feeling that I may have had to download a new version of avarice. The one that bundled with TinyOS1.x is a bit old and doesn't support the JTAGICEII. I don't know if the TinyOS2.x version supports it or not. I also had to add AVARICE_ARGS='-2 -j /dev/ttyS0' to the /etc/profile file to get it to work with the correct serial port. I think I had the same '/dev/avrjtag' error before I did this.

I hope this helps.

Simon

Jon Wyant wrote:
Hi. Has anyone used the USB AVR JTAG ICE mk-II device for debugging TinyOS 2.x code? I found the link for using the serial device on TinyOS 1.x code (http://www.tinyos.net/tinyos-1.x/doc/nesc/debugging.html), so I attempted to see if those directions would be similar enough to work. I keep getting a "Failed to open /dev/avrjtag: No such file or directory" error when running ice-gdb. The "-j" switch doesn't seem to affect this in anyway. I have tried various options just to see if the error message would change, and it doesn't. I have installed AVR Studio and WinAVR. I know the device is working because I can read and program the fuses from AVR Studio just fine. I tried the ice-gdb file in the WinAVR\bin folder instead of the one that came with the Cygwin install, but still get the same error. Also, I have been trying to compile a target file with extended coff debugging, that I could then open in AVR Studio, but have been un-able to get that part to work either. I have tried adding the "avr-objcopy --debugging -O coff-ext-avr ...." option to the "avr.rules" file, but I always get an "avr-objcopy: build/micaz/main.coff: Invalid bfd target" error. I tried the version of the avr-objcopy file from WinAVR tools (which has the coff-avr-patch), and I get the same error. Any thoughts or suggestions would be greatly appreciated! Thanks. Jon ------------------------------------------------------------------------

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


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

Reply via email to