[Tinyos-help] Debugging nesC code with the USB AVR JTAG ICE

2006-12-21 Thread Jon Wyant
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
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Debugging nesC code with the USB AVR JTAG ICE

2006-12-21 Thread Simon Willis
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
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help



___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Debugging nesC code with the USB AVR JTAG ICE

2006-12-26 Thread Aurélien Francillon
Le jeudi 21 décembre 2006 22:00, Jon Wyant a écrit :
> Hi.  Has anyone used the USB AVR JTAG ICE mk-II device for debugging TinyOS
> 2.x code?

I don't remember to try with Tinyos 2 but there should not be any notable 
difference in the Jtag setup itself ...
basically you need avarice cvs version with proper environment plus a few 
tricks to have it working properly.
If you plug the mkII on usb you need to export (it's not documented ...) :
export AVARICE_ARGS='--mkII --jtag usb'

you can find my notes here, including workarounds for some common problems:
http://www.inrialpes.fr/planete/people/francill/stuff/AvrJtagIce.pdf
tell me if it helps of if you still have problems ...

Cheers,
Aurélien

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help