Page 1 of 1

Problems with AVRdoper

Posted: Wed Apr 02, 2008 5:07 pm
by hohes_c
Hi,
i created the PCB and build the avrdoper. It is correctly recognised on my computer (HID and the other mode)
I wanted to use the HID mode.

Code: Select all

usb 2-10: USB disconnect, address 4
usb 2-10: new low speed USB device using ohci_hcd and address 5
usb 2-10: configuration #1 chosen from 1 choice
hiddev0hidraw1: USB HID v1.01 Device [obdev.at AVR-Doper] on usb-0000:00:02.0-10


The i tried this an get an error:

Code: Select all

avrdude -c stk500v2 -P avrdoper -p t25 

avrdude: stk500v2_command(): command failed
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.


I have tried a known to work circuit with mage8 over ISP and a "Fusedead" Tiny25 over the HV Connector (its an SMD) does no matter, the error is the same.

Whats going wrong?
I'm using a MC74HC126AN for IC2. The 12V power is round about 12.1V (measured with Scope)

kind regards
Lucas

Posted: Wed Apr 02, 2008 10:17 pm
by christian
Hmmm... The error indicates a problem on the MISO/MOSI/SCK interface. USB is working correctly. Please check the wiring and components around the HC126 and at the connector.

Did you specify "-c stk500hvsp" for the high voltage mode in avrdude? Otherwise it won't use HV.

Posted: Thu Apr 03, 2008 1:44 am
by Guest
Thanks a bunch, the Error was on the PCB with the MISO line!

To use HV prog i didn't know howto, i couldn't find any documentation for it?! Where are these infos to find?

Code: Select all

avrdude: writing flash (5466 bytes):
Writing | #####....##### | 100% 35.80s


Is that low speed normal?

Code: Select all

avrdude: Version 5.5, compiled on Jan 31 2008 at 02:14:05
  Using Port            : avrdoper
  Using Programmer      : stk500v2


kind regards
Lucas

Posted: Thu Apr 03, 2008 11:50 am
by christian
Since AVR-Doper is intended as a drop in replacement for the STK500 version 2, simply use the STK's docs.

35 seconds for 5k is really slow. Since AVR-USB is firmware driven, USB activity costs CPU time. If the host polls aggressively, the AVR may almost freeze. We can work around this problem in HID mode (not yet done), but there's no way around it in CDC mode.

I hope to include an improved HID mode in the next release.

Posted: Fri Apr 04, 2008 8:45 am
by hohes_c
So I cannot do anything until the next release? Or are there some tricks to speed up?
kind regards
Lucas

Posted: Fri Apr 04, 2008 7:13 pm
by christian
You can try which is faster: HID or CDC mode. And you can increase the ISP clock with the -B option to avrdude.