Hi Seth,
is there any reason why avrdude and avarice should share an identical 
syntax on the command line?
Now anyway did you checked that your XM16A4 has a JTAG port or does it 
only have a PDI port instead?
Here is the command line for debugging a XM32E4 with PDI using ICE-3:

avarice  -I --jtag usb -3 -X  :4242


Here comes the command line for an M32 using JTAG via ICE-3
avarice -I --jtag usb -3 -B1800khz  :4242

"-I" skips interrupts which make debugging easier while a timer is running
This syntax is valid for the current version of avarice as available 
from the repository on a linux system. My avarice show a 2.13 version.

avr-gdb is initiated with the command file "__avr_gdbinit" as created by 
the Makefile. My Makefile is generated by mfile.

cat __avr_gdbinit
define reset
SIGNAL SIGHUP
end
file debug_object.elf
target remote localhost:4242
break main

The parameter "--erase --program -f*.elf" are obsolete and not used any 
more, because avr-gdb can do.

Best regards,
Knut


On 24.10.2013 14:32, Seth Traend wrote:
>> $ avarice --erase --program -f X16A4HelloWorld.elf --part atmega16 -2
>> -g -x :4242
> but it fails with:
>
> AVaRICE version 2.11, Jan 12 2013 23:58:31
>
> Defaulting JTAG bitrate to 250 kHz.
>
> JTAG config starting.
> Found a device: AVRDRAGON
>


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
avarice-user mailing list
avarice-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avarice-user

Reply via email to