bugAVR Downloader/UploaDEr - Bugs: bug #28344, chip_erase_delay too short for...

 
 

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

bug #28344: chip_erase_delay too short for ATmega324P, 644, 644P, and 1284P

Submitter:  David Grayson <davidegrayson>
Submitted:  Fri 18 Dec 2009 10:24:29 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  joerg_wunsch Originator Name:  David Grayson
Open/Closed:  Closed Release:  None
Programmer hardware:  Device type: 

Wed 11 Sep 2013 07:59:42 PM UTC, comment #4: 

Thanks!

I should add that a short time after I posted the initial bug report, the behavior of AVRDUDE changed and the error message became a fatal one that aborted programming.  This was a bit of a problem and we were telling people to edit their avrdude.conf.

Yes, it is probably a datasheet bug.  Thank you for fixing the problem though!

David Grayson <davidegrayson>
Wed 11 Sep 2013 04:27:46 PM UTC, comment #3: 

The datasheet still claims 9 ms, but the XML files either 45
or 55 ms, depending on whether the STK600 is used or not.

I still think someone should file this as a datasheet bug,
but I bumped those numbers.

Joerg Wunsch <joerg_wunsch>
Group administrator
Thu 07 Jan 2010 04:44:18 PM UTC, comment #2: 

I verified the most recent datasheet, and it still says
the chip erase delay being 9.0 ms for all the mentioned
devices.

I'd kindly ask you to open a ticket at <avr -at- atmel.com>
to clarify what the correct chip erase value is.

Joerg Wunsch <joerg_wunsch>
Group administrator
Fri 18 Dec 2009 10:26:30 PM UTC, comment #1: 

Sorry for the messy HTML markup.  On the form where I entered this bug report, there was a cryptic hint that "all tags" are supported, so I thought they meant HTML.  Also, there is no way for me to preview my post or edit it afterwards.

David Grayson <davidegrayson>
Fri 18 Dec 2009 10:24:29 PM UTC, original submission:  

The chip_erase delay for four AVRs in WinAVR-20090313\bin\avrdude.conf is too short, so the chip erase command times out and avrdude prints an error message.  The error is not fatal; it doesn't prevent the user from programming the chip.  This bug should be very easy to fix.

<h3>Solution:</h3>

In avrdude.conf, change the chip_erase_delays to the following values:
Part         chip_erase_delay
ATmega324P:  45000 (us)
ATmega644:   55000
ATmega644P:  55000
ATmega1284P: 55000

Currently they are all 9000, which is too short.  The values listed above were taken from the parts description files installed by AVR Studio:
C:\Program Files (x86)\Atmel\AVR Tools\Partdescriptionfiles\*.xml

<h3>Example output reproducing the problem:</h3>

<pre>
C:\>avrdude -P\\.\USBSER000 -pm324p -F -c avrisp2 -e

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x1e9511
avrdude: Expected signature for ATMEGA324P is 1E 95 08
avrdude: erasing chip
<b>avrdude: stk500v2_command(): unknown status 0x80</b>
avrdude: stk500v2_command(): command failed
avrdude: stk500v2_command(): unknown status 0xc9
avrdude: stk500v2_program_enable(): cannot get connection status

avrdude: safemode: Fuses OK

avrdude done.  Thank you.
</pre>

Fixing the chip_erase_delays will not fix all the error messages here, but it will fix the one highlighted in bold.

David Grayson <davidegrayson>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by joerg_wunsch (Posted a comment)
  • -email is unavailable- added by davidegrayson (Submitted the item)
  • -email is unavailable- added by davidegrayson
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-09-11 joerg_wunsch StatusNeed Info Fixed
        Open/ClosedOpen Closed
    2010-01-07 joerg_wunsch StatusNone Need Info
        Assigned toNone joerg_wunsch
    2009-12-18 davidegrayson Carbon-Copy- Added davidegrayson

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code