avarice vs avrdude

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

After programming a USBKey with avrdude and a JTAGICE mkII,
avrdude does an automatic verify and declares it good.
A separate verify produces the same conclusion.
avarice reports at least 1/4 of the bytes to be in error.

In case it helps:
avr-objcopy -O ihex USBtoSPI.elf USBtoSPI.hex
avrdude -p usb1287 -c jtag2 -u -P usb -U f:w:USBtoSPI.hex

avarice -2 --verify --file USBtoSPI.elf --part at90usb1287 --jtag usb :4242

Any idea what I'm doing wrong?

"Demons after money.
Whatever happened to the still beating heart of a virgin?
No one has any standards anymore." -- Giles

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I don't trust AVaRICE's ability to perform firmware up/downloads using
the JTAG ICE mkII protocol. That code path is not really debugged.

Jörg Wunsch

Please don't send me PMs, use email if you want to approach me personally.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

dl8dtl wrote:
I don't trust AVaRICE's ability to perform firmware up/downloads using
the JTAG ICE mkII protocol. That code path is not really debugged.
Thank you for the information.
There doesn't seem to be any way to start avarice
without either --verify or --program (possibly implicit).
Please tell me that I've missed something.

"Demons after money.
Whatever happened to the still beating heart of a virgin?
No one has any standards anymore." -- Giles

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sure, there is. I always use

avarice -2 -j usb:xxxx -B3mhz [-I] :4242

Use the -I option in case you don't want interrupts to mess
up your normal debugging flow.

Jörg Wunsch

Please don't send me PMs, use email if you want to approach me personally.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

dl8dtl wrote:
Use the -I option in case you don't want interrupts to mess up your normal debugging flow.
That is a cool option!! That alone may cause me to move to avrdude and gdb!

Stu

Engineering seems to boil down to: Cheap. Fast. Good. Choose two. Sometimes choose only one.

Newbie? Be sure to read the thread Newbie? Start here!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

dl8dtl wrote:
Sure, there is. I always use

avarice -2 -j usb:xxxx -B3mhz [-I] :4242

Use the -I option in case you don't want interrupts to mess
up your normal debugging flow.

Ah.
It took me a while to realize that avarice
doesn't need the .elf file at all.
avarice doesn't deal in names.
gdb is the one that needs the symbol table.

"Demons after money.
Whatever happened to the still beating heart of a virgin?
No one has any standards anymore." -- Giles