-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Write bootloader - problem on ATmega8 #2075
Comments
Hello: 2 month since the bug was opened. Thanks |
I Confirm bug on IDE 1.5.7 also: Arduino:1.5.7 (Windows 7), Scheda:"Arduino NG or older, ATmega8" |
Hello, I solved it this way... Open for edit the file C:\Program Files\Arduino\hardware\arduino\avr\platforms.txt #============================================================================== tools.avrdude.upload.params.verbose=-v -v -v -v tools.avrdude.program.params.verbose=-v -v -v -v tools.avrdude.erase.params.verbose=-v -v -v -v tools.avrdude.bootloader.params.verbose=-v -v -v -v create a new tool called, for example, avrdude1 #============================================================================= tools.avrdude1.upload.params.verbose=-v -v -v -v tools.avrdude1.program.params.verbose=-v -v -v -v tools.avrdude1.erase.params.verbose=-v -v -v -v #this line was edited tools.avrdude1.bootloader.params.verbose=-v -v -v -v Here is an example of the use of the tool avrdude1 in boards.txt file atmega8.name=ATmega8 OPTIBOOT |
Thanks for this tips.
|
So you can create a batch file that edits files and platforms.txt boards.txt. Or maybe the point is that in general you can not change the contents of these files? |
A people that have an Original ArduinoNG board must receive an IDE that
|
I understand. Thank you for your response testato. |
When is this bug going to be fixed? |
Super, rigelinorion !!! |
how to create a new tool called, avrdude1?? Help me creating new tool |
You should edit the file platform.txt file, usually found in: Also, on windows you should probably use Notepad++, Metapad or similar programs to edit the files. BTW, I suggest to name it avrdude_old or avrdude_noefuse instead of avrdude1. |
One year for a Regression bug is not acceptable. |
Any progress in this? |
I wait for this bug to be resolved. |
👍 |
1 similar comment
+1 |
+1 using v1.6.5 |
Sure do the solution by "rigelinorion" works bootloader uploaded succeccfully but i'm still not able to upload sketch to the atmega8 it says avrdude: stk500_recv(): programmer is not responding If someone has the solution..! |
Perhaps the fault of the bootloader. I use optiboot and everything works well. Maybe fusbits are not set properly? Is reset is triggered when uploading? What programmer you are trying to upload the program? |
Pay attention that "Upload using the programmer" remove the bootloader, so it's use is completely out of topic respect this issue. |
I am using Arduino 1.6.8 but still this error :( |
Modifying rigelinorion comment, Do whatever rigelinorion says and then atmega8_diy_atmega8a_8MHz_optiboot.name=ATmega8A, (8MHz Internal Oscillator) Actually problem with rigelinorion was it can bootload but no upload sketch, so for bootloader use tool avrdude1 and for uploading using build-in Atmega8 NG avrdude tool, above boards.txt is combination of both in one. ATMEGA8A-PU Bootloader and Uploading Sketch Done :) |
@cmaglie Maximum Effort |
I think that the problem might be upstream with avrdude's default configuration, since it does not seem to define atmega8's boot/efuse memory regions in
Therefore, i.e:
|
My suggestion which worked out for me was to use other versions of arduino. Hope this would be helpful:) |
There is many solution, from modify the IDE to use old version of the ide. |
Fix: add fake efuse to ATmega8 in avrdude.conf. Tested and works with avrdude 6.0.1 and 6.3.
|
avrdude.conf is a modified arduino file ? if yes you can prepare a PR end solve this storic bug. |
The file comes from the avrdude project and can be patched during building from the Arduino team. |
So it is possible solve this bug, but how "contribute a patches" that arduino team will store and copy at every new avrdude update ? If you know how please create this patch, we organize a party if after "only" two years this bug will solved. @facchinm do you know the correct way for doing this job ? |
i have solved this problem check this link @Testato @diegocueva @rigelinorion @DRSDavidSoft @joseluisperezbarrales https://www.youtube.com/watch?v=2MMYnIFaXv4 you will get the solution here |
If what @awatterott says is true, this would break the way Arduinos with Atmega328p can be bootloaded. I like his workaround better. |
This allows to have a common platform.txt recipe for all the ATMegaXX parts in the Arduino IDE. See: arduino/Arduino#2075 (comment) arduino/Arduino#2075
I've pushed a fix as suggested by @awatterott: arduino/avrdude-build-script@0bfe2c4 It should be already in the hourly build, if anyone wants to try it. 🎅 |
Should be fixed from 1.6.14. Please reopen if the issue persists. |
that's for sure :-) |
This allows to have a common platform.txt recipe for all the ATMegaXX parts in the Arduino IDE. See: arduino/Arduino#2075 (comment) arduino/Arduino#2075 Co-authored-by: Martino Facchin <m.facchin@arduino.cc>
This allows to have a common platform.txt recipe for all the ATMegaXX parts in the Arduino IDE. See: arduino/Arduino#2075 (comment) arduino/Arduino#2075 Co-authored-by: Martino Facchin <m.facchin@arduino.cc>
This allows to have a common platform.txt recipe for all the ATMegaXX parts in the Arduino IDE. See: arduino/Arduino#2075 (comment) arduino/Arduino#2075 Co-authored-by: Martino Facchin <m.facchin@arduino.cc>
This allows to have a common platform.txt recipe for all the ATMegaXX parts in the Arduino IDE. See: arduino/Arduino#2075 (comment) arduino/Arduino#2075 Co-authored-by: Martino Facchin <m.facchin@arduino.cc>
During the writing of the bootloader, IDE 1.5.x look for e_fuse setting for the ATmega8 (ArduinoNG board)
But the ATmega8 do not have the e_fuse, so it is normal that there isn't
[code]Arduino: 1.5.4 (Windows 7), Board: "Arduino NG or older, ATmega8"
"efuse" memory type not defined for part "ATMEGA8"[/code]
I also tried to manually add a fake e_fuse in the board, without success
[code]atmegang.menu.cpu.atmega8.bootloader.extended_fuses=0xFF
[/code]
The text was updated successfully, but these errors were encountered: