bugAVR Downloader/UploaDEr - Bugs: bug #34892, USBasp + ATMEGA328 broken in...

 
 

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

bug #34892: USBasp + ATMEGA328 broken in current SVN

Submitted by:  Tomaž Šolc <avian>
Submitted on:  Thu 24 Nov 2011 07:39:50 PM UTC  
 
Category: NoneSeverity: 4 - Important
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: Tomaž
Open/Closed: ClosedRelease: None
Programmer hardware: Device type: 

Sat 14 Jan 2012 05:17:12 PM UTC, comment #4:

Yes, I tried svn revision 1039 and the problem appears to be solved. Thanks!

Tomaž Šolc <avian>
Sun 08 Jan 2012 08:11:58 PM UTC, comment #3:

Is this solved by svn revision 1034?

(svn comment:
Reported by Jason Kotzin:

  • usbasp.c (usbasp_spi_paged_load, usbasp_spi_paged_write):

Fix buffer address calculation.
)

Rene Liebscher <rliebscher>
Project Member
Thu 24 Nov 2011 08:08:08 PM UTC, comment #2:

Thanks for the quick reply.

avrdude_stderr_5_10 is from the working 5.10 release.

avrdude_stderr_head is from the broken SVN head.

(file #24442, file #24443)

Tomaž Šolc <avian>
Thu 24 Nov 2011 07:50:41 PM UTC, comment #1:

Sorry for the breakage. It appears parts of the device can
be programmed correctly, and the problem apparently starts
at the second page or block.

Can you please run your command with -vvvv, and attach the
stderr output here as a file? You could also attach the
same output for v5.10 if you want, but of course, the output
from the failing version is more important.

Joerg Wunsch <joerg_wunsch>
Project Administrator
Thu 24 Nov 2011 07:39:50 PM UTC, original submission:

Hi

Sorry for yet another mail. While working on the "part parent" patch I noticed that the current SVN head doesn't work with my setup: USBasp programmer and ATMEGA 328.

It appears it will not program the chip at all and also always fails the verification step:

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0080
0xff != 0x2a
avrdude: verification error; content mismatch

The exact command line I'm using is:

avrdude -F -p m328p -c usbasp -e -U flash:w:blink.hex

This same setup is working with avrdude 5.10

Using svn-bisect I found out that the bug appeared in revision 1007 (1006 is the last one working correctly).

Since 1007 is a "mega-commit" it's hard to find what exactly introduced the bug. I've been looking at the diff and can't spot it.

If someone more familiar with the code can help, I can give some more debugging info.

Thanks
Tomaž

Tomaž Šolc <avian>

 

Attached Files
file #24442:  avrdude_stderr_5_10 added by avian (6KiB - application/octet-stream)
file #24443:  avrdude_stderr_head added by avian (21KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rliebscher (Posted a comment)
  • -unavailable- added by joerg_wunsch (Posted a comment)
  • -unavailable- added by avian (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
    Sat 14 Jan 2012 05:23:25 PM UTCrliebscherStatusNeed Info=>Fixed
      Open/ClosedOpen=>Closed
    Thu 24 Nov 2011 08:08:08 PM UTCavianAttached File-=>Added avrdude_stderr_5_10, #24442
      Attached File-=>Added avrdude_stderr_head, #24443
    Thu 24 Nov 2011 07:50:53 PM UTCjoerg_wunschStatusIn Progress=>Need Info
    Thu 24 Nov 2011 07:50:41 PM UTCjoerg_wunschSeverity3 - Normal=>4 - Important
      StatusNone=>In Progress

    Back to the top


    Powered by Savane 3.1-cleanup1