UNI-DS3 with AVRFLASH error: USB Transfer error

General discussion on mikroBasic for AVR.
Post Reply
Author
Message
mrengers
Posts: 3
Joined: 04 Dec 2008 17:44

UNI-DS3 with AVRFLASH error: USB Transfer error

#1 Post by mrengers » 04 Dec 2008 17:58

Hello all,

Today I encountered a problem. First of all, it used to be fine with mikroBASIC for AVR with AVRFLASH 2.0x

Now I have the 2 new betas installed: mikroC Pro for AVR and mikroBASIC Pro vor AVR. Along came AVRFLASH v2.11a with its drivers.

Now if I try to programm the AVR, I got this error:

'USB Transfer error'

and when I hit 'OK', there's an additional message:

'Can not read signature bytes.'

The programm that is currently running is stopped during re-programming, and is resuming after hitting 'OK' at the 'USB Transfer error'-message

First I thought I had it wrong with the installation of the new software, so I removed all of the AVRFLASH programs (there were 3 of them, all in respect to 'their' compiler...) and its drivers.

Now I have only 1: v2.11a with driver.

mikroBASIC (not the Pro) can't find this new AVRFLASH, but the Pro (I upgraded my license) can. But still the error persists.

Also mikroC Pro can't programm as it is using the same AVRFLASH....
It used to be fine with mikroBASIC and mikroC Pro (and AVRFLASH v2.10) before I installed mikroBASIC Pro with AVRFLASH v2.11a

So:

mikroBASIC Pro for AVR
AVRFLASH v2.11a with usb18f driver (v1.20)
UNI-DS3 with ATmega128 (AT FLASH prog: 02.06.02.28)

Anyone?


Regards,

Marc

User avatar
marko.medic
mikroElektronika team
Posts: 173
Joined: 05 Jun 2008 08:07

#2 Post by marko.medic » 05 Dec 2008 13:00

Hi,
mikroBASIC Pro for AVR
AVRFLASH v2.11a with usb18f driver (v1.20)
UNI-DS3 with ATmega128 (AT FLASH prog: 02.06.02.28)
I tested mentioned situation and I wasn't able to reproduce problem. All is working fine.
I guess that you have some collision between software versions.
So I recommend to uninstall older version of software's
(AVR Flash programmer and mikroBasic compiler), and then install new one's.

Regards

mrengers
Posts: 3
Joined: 04 Dec 2008 17:44

#3 Post by mrengers » 05 Dec 2008 23:04

Thanks for checking.

I'll try uninstalling and install only the latest versions. I will post the results after the weekend.

[weekend]

Well,

Still in the weekend, but couldn't just wait.... I uninstalled all software and drivers. Rebooted and installed just mikroBASIC Pro for AVR + AVRFLASH 2.11a with drivers.

But... Still no luck.

The USB LINK led is on. When programming, the current running software stops (I have software filling the graph-lcd) and after a while (21 seconds) the message 'USB Transfer error' appears. When I click 'OK' the previous programmed software starts filling the lcd again. And the message 'Can not read signature bytes' pops up.
So there is some kind of communication with the board (otherwise the software wouldn't stop, right?), and somewhere on the line it must go wrong....

Could it be a faulty ATmega128 board?

The USB ports on my laptop are functioning, I've tested every port with mouse, scanner and harddisk.
The UNI-DS3 board is powerd by external powersource.

Well... It beats me.... I haven't got a JTAG programmer, or I would have tried that...

Anything I can measure on the AVR 64 pin Card? (rev. 1.01)


Marc

User avatar
marko.medic
mikroElektronika team
Posts: 173
Joined: 05 Jun 2008 08:07

#4 Post by marko.medic » 08 Dec 2008 11:56

Hi,

Please try with removing all peripherals from development board(LCD, GLCD...).
Also pay attention on Jumpers and switches on your board,
try to turn all board modules off with mentioned switches and jumpers.
Some of peripherals could interfere with programming lines for your MCU.
Please inform me about results.

Regards

mrengers
Posts: 3
Joined: 04 Dec 2008 17:44

#5 Post by mrengers » 12 Dec 2008 12:03

Hi,

I removed all peripherals, dipswitches all off, jumpers in original setup. But still the error.

I uninstalled the mikroBASIC Pro and AVR FLASH 2.11a and installed my original mikroBASIC 4.02 with AVR FLASH 2.09. But also here the error.

I start to think there's something wrong with the AVR 64 pin Card.... :-(

Are there any pins I can measure (multimeter or with scope (40Mhz))?

Regards,

Marc

Post Reply

Return to “mikroBasic for AVR General”