avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avrdude-dev] avrdude and usbasp: error: wrong reading bytes b8


From: Gerald Dachs
Subject: [avrdude-dev] avrdude and usbasp: error: wrong reading bytes b8
Date: Fri, 25 Jan 2008 11:57:42 +0100
User-agent: Internet Messaging Program (IMP) H3 (4.1.3)

Hi,

I use avrdude version 5.4 with an USBasp programmer on Ubuntu Linux.
I try to programm an atmega128 modul. The USBasp and the atmega are
USB-Powered. There is nothing else connected to the atmega modul.
I have burned the fuses to let the atmega use the external oscillator and
to switch of atmega103 compatibility.

Often, but not always avrdude doesn't get the device signature:

avrdude: Device signature = 0x000102
avrdude: Expected signature for ATMEGA128 is 1E 97 02

This doesn't happen if I use "Slow SCK" with the USBasp.

If I try to read the flash, I get everytime the following error.

avrdude: error: wrong reading bytes b8

If I don't use "Slow SCK" I get this error already very early during
the read operation. With "Slow SCK" I get it mostly between 50 to 90% percent
progress of the read operation. It is very unreliable, but it never
finished successful.

My first look into the source has shown me only that this error message
means that the call to usbasp_transmit in the function usbasp_paged_load
didn't transmit the expected amount of bytes, but that didn't help me so much.
Strange that it is always the same amount of bytes.

I get this error with avrdude version 5.4 that comes with ubuntu and
with version 5.5 that I have build myself. I have bought the USBasp
ready made, so I have no idea which firmware version is inside.

I am ready to investigate further, but into which direction?
It would be nice if somebody would take my hand and lead me.

Sorry for my poor English, please.

Gerald

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]