-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Wrong Avrdude config for atmega8u2 #3645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi Nico, thanks for reporting. The repo for our |
Reported upstream https://savannah.nongnu.org/bugs/index.php?45727 |
Thanks for reporting it upstream! Is there a way to pass a different avrdude config to the IDE? Do you know when we can expect an ardude update for upstream? |
May anyone add this here and try it out?
I used avrdude 6.0.1 (not 6.1) and made the changes. Not sure if the other patches have to be applied before this patch, I started from the original avrdude file. |
@NicoHood Joerg seems to be the only person maintaining avrdude: |
Thx, Done. |
These values are now correct in the current version of AVRDUDE included with the Arduino IDE. Thanks! |
@per1234 Do you have any link to the patch? I've emailed him long time ago but I never got a notice that this got fixed. Good to hear it though. |
I don't see this fix in the patches. I guess maybe they are only published for some fixes? However, you can see the bug report (https://savannah.nongnu.org/bugs/index.php?45727) was marked fixed Sat 31 Oct 2015 and the official version of AVRDUDE 6.3 from http://download.savannah.gnu.org/releases/avrdude/ has the changes you requested made to its avrdude.conf. I didn't check AVRDUDE 6.2 so I don't know if the fix made it into that release. Note that Joerg Wunsch commented:
I didn't look at the datasheet to see if it's been corrected yet. |
I wrote atmel multiple times to correct their datasheet for several bugs. Its like /dev/null so good to see an avrdude fix here. |
The atmega8u2 avrdude config setting is wrong.
The bug was discovered here:
NicoHood/HoodLoader2#6 (comment)
Look at the screenshot and you will see some values are swapped. the correct values are:
page_size = 128
num_pages = 64
blocksize = 128
We could upload firmwares to a 8u2 with at90usb82 settings and -F switch. But with normal 8u2 setting we get a verification error. the head of the 8u2 block has also wrong values in the commented section where it describes the changes.
This file is affected (version 6.1)
http://svn.savannah.nongnu.org/viewvc/trunk/avrdude/avrdude.conf.in?root=avrdude&view=log
I cannot find the file in the IDE but could you please patch it?
It'd also be nice if someone could open an bug at the avrdude website. I dont have an account and dont want to create one, but this bug should be fixed, and it can be fixed fast.
Or other question:
Is it possible to use the default arduino core for a variants board and input a custom avrdude.conf file (to fix the issue for now permanently in my board definitions)
The text was updated successfully, but these errors were encountered: