bugAVR Downloader/UploaDEr - Bugs: bug #41928, Avrdude fails to burn flash of...


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

bug #41928: Avrdude fails to burn flash of Atmega328p using buspirate with Arduino IDE

Submitted by:  None
Submitted on:  Fri 21 Mar 2014 08:37:18 PM UTC  
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Originator Name:  Roberto Arag√≥n
Originator Email:  -email is unavailable- Open/Closed:  Open
Release:  None Programmer hardware: 
Device type: 

Tue 14 Oct 2014 06:57:00 PM UTC, comment #2:

How did you add support for the buspirate to the Arduino IDE? I don't think it's supported out of the box. In Arduino version 1.5.x, the -D option is not passed by default to external programmers defined in `programmers.txt`, so it's likely that this is a problem in the way you added support for the buspirate to the IDE (or perhaps a problem in the IDE, if you use version 1.0.x, which hardcodes more paths and options IIRC).

In any case, I think that running avrdude with -D and without -e is intended to not do an erase, meaning you can only change bits from 1 to 0, not vice versa. If you're trying to flash in a new program, this is expected to break...

Matthijs Kooijman <matthijs>
Fri 02 May 2014 07:45:18 AM UTC, comment #1:

It would probably help for debugging if you posted the .hex file used and the exact avrdude commandline that the Arduino IDE calls (enable verbose uploads for that).

Matthijs Kooijman <matthijs>
Fri 21 Mar 2014 08:37:18 PM UTC, original submission:

If using the buspirate support on avrdude 6.1 (and 5.5 also tested), the flash gets corrupted the second time it is used with arduino IDE (the first time always ends with success).

The only workaround is to use avrdude with the "-e" switch (or without "-D" to avoid automatic flash erasure). The MCU is then correctly flashed every time, but the RESET support is gone. This is the expected behaviour, since erasing the flash also erases the bootloader and the RESET support.

The short error message shown is something like this:

Attempting to initiate BusPirate binary mode...
avrdude: verification error, first mismatch at byte 0x010a
0x68 != 0x6a
avrdude: verification error; content mismatch

I compiled avrdude 6.1 from scratch in a GNU/Linux machine and copied the configuration file and the executable to the tools dir of the Arduino IDE with identical results.

Maybe this is the expected behaviour. If so, I apologize, I'm a beginner and maybe I misunderstood something about this tool.



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 matthijs (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)

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

    Only logged-in users can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.4