I have an arduino mega 2560, in the last couple of weeks I messed with the driver IC (Atmega16u2) to turn it into a MIDI, turns out corrupted the driver somehow. Since then I used an arduino uno as ISP to upload my sketch to arduino mega. So just by today I finally found out how to restore the Atmega16u2 driver and now when I plug in my arduino mega, it finally appears in the ports.
And there is another problem. Turns out I can't upload my sketches to arduino mega even though the device appears in the ports. I thought it might be the bootloader. So I followed some instructions I found. And since I got an Arduino Uno this is the instructions I got.
- Upload the Arduino as ISP sketch to arduino uno.
- Connect Uno to Mega using SPI connection:-
Uno:Mega
10:RESET
11:51
12:50
13:52
5V:5V
GND:GND - Select Arduino Mega 2560 as board
- Select Arduino as ISP as programmer.
- Burn Bootloader.
And I did exactly that and then it says the bootloader has been burnt into the arduino mega. Then I found that the L led blinks in an interval of less than a second. I already had a feeling that something didn't go well. When I plug my Mega to the computer and try uploading a sketch, turns out, it still didn't work.
Anyone got any idea what's happening? Thank you in advance if anyone is reading this.