Hi!
I have been trying to use usbasp to programm some mega 2560 boards without good results. I have been following information from different places. After this failed attempt to try to use usbasp, the boards with which I have been playing, are not uploading sketch, with the sadly famous timeout error. Several boards seem to be useless now...
Perhaps somebody has an advice to help me bring these boards back to life?
The massive post about timeout error has a lot of different information from which I tried a lot of things with no results... (Upload Timeout Error on Mega 2560 - Not Sure What Changed - Installation & Troubleshooting - Arduino Forum )
Or perhaps should I throw the boards away and continue with my life? this is consuming a lot of time so far for nothing...
have a nice day!
pert
March 30, 2017, 12:28pm
2
You haven't provided enough information.
camilozk:
I have been trying to use usbasp to programm some mega 2560 boards without good results.
What exactly do you mean by "use usbasp to programm"?
What exactly do you mean by "without good results"?
After you do a Sketch > Upload Using Programmer on a board it erases the bootloader and if you try to upload over USB after that you will get the:
avrdude: stk500v2_ReceiveMessage(): timeout
error. You need to do a Tools > Burn Bootloader on the board in order to go back to being able to upload to the board over USB again.
thanks pert for writing
by "use usbasp to programm" I mean exactly what you understood: Sketch > Upload Using Programmer
by "without good results" I mean that I do not see the program working. For example, I tried to upload the blink example, and never saw the blinking working
I also remember trying to do Tools > Burn Bootloader, but I didnt manage to make it work.
I am away from home right now, but I will try it out one more time when I am back.
thanks again.
pert
March 31, 2017, 9:04pm
4
OK, the program not running after you do a Sketch > Upload Using Programmer using USBasp with Mega 2560 is a known issue:
opened 06:30PM - 15 Nov 12 UTC
EDIT: **The original issue from google code has been solved. This issue is still… open to keep track of uploading problems using USBAsp programmer, see comments below for details.**
This is [Issue 388](http://code.google.com/p/arduino/issues/detail?id=388) moved from a Google Code project.
Added by 2010-10-28T20:36:23.000Z by [rdlsoftware@gmail.com](http://code.google.com/u/rdlsoftware@gmail.com/).
Please review that bug for more context and additional comments, but update this bug.
### Original description
**What steps will reproduce the problem?**
1. Wire up a connection between the Arduino Duemilanove and Mega 2560
2. Upload ArduinoISP (from IDE 021) to Arduino Duemilanove
3. Upload a new bootloader to a Mega 2560 via the 'programmer'
**What is the expected output? What do you see instead?**
After uploading, the mega should accept new sketches.
**What version of the Arduino software are you using? On what operating**
**system? Which Arduino board are you using?**
Arduino 021. Arduino Duemilanove as ArduinoISP (version from IDE 021), Arduino Mega 2560 as target hardware. Windows 7 64 bit.
**Please provide any additional information below.**
See http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1287952386 for original post of issue.
There are two solutions to chose from:
Update the firmware:
Note that this is an advanced operation and may result in "bricking" your USBasp. You can get more information here:
https://forum.arduino.cc/index.php?topic=363772.0
Change the fuse setting:
Tools > Board > Arduino/Genuino Mega or Mega 2560
File > Examples > SPI >BarometricPressureSensor (or any other SPI library example)
Sketch > Show Sketch Folder
Navigate up folder levels to the folder that contains the file boards.txt
Open boards.txt in a text editor
Change the line:
mega.menu.cpu.atmega2560.bootloader.high_fuses=0xD8
to:
mega.menu.cpu.atmega2560.bootloader.high_fuses=0xD9
Save the file
Restart the Arduino IDE if it's running
Tools > Burn Bootloader
Sketch > Upload Using Programmer
The sketch should now run.
You will need to change the fuse value back to the original value following the above steps before doing Tools > Burn Bootloader again to be able to go back to normal uploading over USB again.