bugAVR Downloader/UploaDEr - Bugs: bug #28566, Adress mismatch and errors on...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #28566: Adress mismatch and errors on writing eeprom to attiny85

Submitted by:  None
Submitted on:  Tue 12 Jan 2010 08:35:43 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: Joerg Wunsch <joerg_wunsch>Originator Name: Christian Harf
Originator Email: -unavailable-Open/Closed: Closed
Release: NoneProgrammer hardware: 
Device type: 

Thu 14 Jan 2010 09:01:02 PM UTC, comment #2:

Christian said SVN version works for him, too.

Joerg Wunsch <joerg_wunsch>
Project AdministratorIn charge of this item.
Tue 12 Jan 2010 10:38:46 PM UTC, comment #1:

I'm afraid it's either a problem with your programmer,
or your ISP clock being too high (as someone already
suspected in the mikrocontroller.net forum). I ran your
test file on a genuine STK500v2 (not even using the most
recent firmware), and it programmed the EEPROM fine:

% ./avrdude -C avrdude.conf -p attiny85 -c stk500v2 -P /dev/cuad0 -B10 -U ee:w:/tmp/test.eep:r

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e930b
avrdude: reading input file "/tmp/test.eep"
avrdude: writing eeprom (512 bytes):

Writing | ################################################## | 100% 1.29s

avrdude: 512 bytes of eeprom written
avrdude: verifying eeprom memory against /tmp/test.eep:
avrdude: load data eeprom data from input file /tmp/test.eep:
avrdude: input file /tmp/test.eep contains 512 bytes
avrdude: reading on-chip eeprom data:

Reading | ################################################## | 100% 0.59s

avrdude: verifying ...
avrdude: 512 bytes of eeprom verified

avrdude: safemode: Fuses OK

avrdude done. Thank you.

This is with the SVN version of AVRDUDE although I doubt
it will make a difference to stock version 5.8 except for
the SVN version being faster since it uses paged writes.

Just noticed in your log:

Vtarget : 0.0 V
SCK period : 0.1 us

Whatever that means for your programmer... My STK500
reports:

Vtarget : 3.3 V
SCK period : 9.8 us

(I've been using option -B10 to be on the safe side, as
my ATtiny85 ran with the default 1 MHz clock.)

Joerg Wunsch <joerg_wunsch>
Project AdministratorIn charge of this item.
Tue 12 Jan 2010 08:35:43 PM UTC, original submission:

I want to write an eeprom file (ihex and raw) to attiny85, but i got errors.

avrdude -pt85 -cstk500v2 -P/dev/ttyUSB0 -Ueeprom:w:test.eep:r

The test.eep contains 256 16-bit words, which i create by counting from 0x0000 up to 0x00ff. The resulting file looks like this:

        1. 00 00 01 00 02 00 03 00 04 00 05 00 06 00 07 00

...
01F0 F8 00 F9 00 FA 00 FB 00 FC 00 FD 00 FE 00 FF 00

With avrdude version 5.7 and 5.8 i got this output:

avrdude-5.7: Device signature = 0x1e930b
avrdude-5.7: current erase-rewrite cycle count is -33489152 (if being tracked)
avrdude-5.7: reading input file "b.eep"
avrdude-5.7: writing eeprom (512 bytes):

Writing | ############# | 25% 0.64s ***failed;
***failed;
***failed;
***failed;

And so on...

After that i read out the resulting eeprom image:

At address 0x000 up to 0x07F i have found the bytes "40 00 41 00..." (they must be programmed to 0x080 to 0x0FF).
The bytes from address 0x080 to 0x17F are untouched (FF).
Adress 0x180 to 0x1FF are correct.

This looks like an address corruption.

avrdude version 5.6 works fine.

For this tests i have used the avrdude.conf for version 5.8 which installed on my system (x86_64; Fedora 12).

Anonymous

 

Attached Files
file #19475:  error.txt.gz added by joerg_wunsch (53KiB - application/gzip - -vvvv output from submitter)
file #19472:  test.eep added by None (512B - application/octet-stream)
file #19473:  result.eep added by None (512B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by joerg_wunsch (Updated the item)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 14 Jan 2010 09:01:02 PM UTCjoerg_wunschStatusWorks For Me=>Fixed
      Open/ClosedOpen=>Closed
    Tue 12 Jan 2010 10:38:46 PM UTCjoerg_wunschStatusNone=>Works For Me
      Assigned toNone=>joerg_wunsch
    Tue 12 Jan 2010 09:34:16 PM UTCjoerg_wunschAttached File-=>Added error.txt.gz, #19475
    Tue 12 Jan 2010 08:35:43 PM UTCNoneAttached File-=>Added test.eep, #19472
      Attached File-=>Added result.eep, #19473

    Back to the top


    Powered by Savane 3.1-cleanup1