Problems with AVRdoper

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
hohes_c
Posts: 2
Joined: Wed Apr 02, 2008 5:01 pm

Problems with AVRdoper

Post by hohes_c » Wed Apr 02, 2008 5:07 pm

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

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Wed Apr 02, 2008 10:17 pm

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.

Guest

Post by Guest » Thu Apr 03, 2008 1:44 am

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

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Thu Apr 03, 2008 11:50 am

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.

hohes_c
Posts: 2
Joined: Wed Apr 02, 2008 5:01 pm

Post by hohes_c » Fri Apr 04, 2008 8:45 am

So I cannot do anything until the next release? Or are there some tricks to speed up?
kind regards
Lucas

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Fri Apr 04, 2008 7:13 pm

You can try which is faster: HID or CDC mode. And you can increase the ISP clock with the -B option to avrdude.

Post Reply