Problem after driver update

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
iphi
Rank 2
Rank 2
Posts: 68
Joined: Mon Jun 25, 2007 11:37 am

Problem after driver update

Post by iphi » Wed Feb 13, 2008 5:58 pm

Hi,

as I want to use usbSofCount in my Easylogger variant, I went about to upgrade to the latest USB driver.
I deleted the usbdrv directory and replaced it by the one found in the latest powerswitch files.
I DID NOT MODIFY usbconfig.h.

Recompilation went ok with 0 warnings and 0 errors, but the device won't connect with the new drivers. Changing back to the old drivers everything works fine again.

What did I overlook?

Regards, Tom

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

Post by christian » Thu Feb 14, 2008 12:25 am

Which version works and which does not? Maybe we have introduced a bug in one of the last changes...

iphi
Rank 2
Rank 2
Posts: 68
Joined: Mon Jun 25, 2007 11:37 am

Post by iphi » Thu Feb 14, 2008 9:10 am

Hi Christian,

I have run successfully EasyLogger.2007-07-19.zip.
I have replaced the drivers by the ones found in PowerSwitch.2008-02-05.zip with the described problem.

Is there something I can do for troubleshooting?

BTW: I have flashed the above powerswitch application to an ATTINY2313 with 12MHz and it works fine. But of course, there's not the 16.5MHz driver used.

Regards, Tom

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

Post by christian » Thu Feb 14, 2008 2:39 pm

It's hard to compare these versions because a lot of re-structuring occurred between them. But as far as I can see, none of the changes should affect the 16.5 MHz module.

I currently don't have my EasyLogger board available, so I can't run my own tests. Can you please try the other releases between these two? Maybe it's easier to see the difference if only a few lines have changed. Please don't for get a "make clean" before you compile with the new driver.

iphi
Rank 2
Rank 2
Posts: 68
Joined: Mon Jun 25, 2007 11:37 am

Post by iphi » Thu Feb 14, 2008 5:40 pm

Up to version 2007_10_23 the 16.5MHz driver works for EasyLogger.

Starting version 2007_12_01 there's the problem.

Regards, Tom

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

Post by christian » Thu Feb 14, 2008 10:38 pm

There was a restructuring between these versions where common parts of the assembler module were moved to a single file. I have overlooked that one register was different in the 16.5 MHz module.

Can you contact me by e-mail (AVR-USB support address) so that I can send you a fixed version for testing?

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

Post by christian » Fri Feb 15, 2008 10:17 pm

OK, this is a bug in all versions from 2007-12-01 to 2008-02-05. It will be fixed in all future versions. This bug affects the 16.5 MHz module only.

Post Reply