Have 3 Arduinos One UNO Rev 3 (works perfectly) and two MEGA 2560 (w/ different problems, see below).
Will call it Ren and Stimpy, because after all these process we are friends and they dont deserve to be called A and B. So,
- UNO have chips MEGA16U2 and ATMEGA 328P.
- Ren and Stimpy have chips MEGA16U2 and ATMEGA2560. Im not sure what happened to it. A friend brought them to me without knowing details (yes, I would like to know its past too).
Ren was recognized by my PC (leds yellow and green ok). COM is shown in PC when I connect the board. The controller its ok. But couldnt upload any code. I saw that leds TX and RX was not working. Not sure if it was a problem caused by ATMEGA16U2 or if the problem its the ATMEGA2560.
Tried to access to DFU mode jumping Reset and GND on ICSP near the USB port. Couldnt do it. So the solution I know via DFU ---> FLIP w/ reinstalling hex file of MEGA16U2 was not able
Tried w/ Loopback test as marked by "Coding Bafly" (https://forum.arduino.cc/index.php?topic=73748.0). No echoes received in Serial Monitor.
Tried to bootupload Ren using the UNO as programmer, following this steps:
Connected UNO to PC (port and board also selected).
Opened ArduinoISP from Examples and uncommented the line for using old Uno style wiring// (using pin 11, 12 and 13 instead of the SPI header). I think this step was not neccesary.Uploaded ArduinoISP from Examples (no other boards or wirings connected to UNO)
Disconnectesd UNO and proceeded w/ wiring (Pin 13 on UNO ---> 52 on Ren, Pin 12 on UNO ---> 50 on Ren // Pin 11 on UNO ---> 51 on Ren // Pin 10 on UNO ---> Reset on Ren (the one located on Power Side) // +5V on UNO ---> +5V on Ren (the one located on Power Side) // GND on UNO ---> GND on Ren (the one located on Power Side).
Connected leds circuit over pins 7, 8 & 9 as marked here: https://www.arduino.cc/en/Tutorial/ArduinoISP.
Connected UNO via USB to PC.... Port: the same it was. Board is changed for the target (Ren)
Process completed ok, no warnings in red. But.....
Connected Ren to PC. COM is recognized well, the same as before. But still cant upload codes. When try to upload "Blink" sketch the message is:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
Rx and TX leds are not blinking. There is only one difference: led on 13 blinks (lapse of 0.5 secs) all the time. If I press Reset button, this yellow led keeps on, but restart to blink when I release it. What does it mean? Do you think that Ren is leading w/ a MEGA16U2 problem? If so, Could I upgrade it in a different way than the DFU ---> FLIP process? If so, dont know how to do it, specialy if I have to deal with avrdude commands...
With Stimpy, the situation it was a bit worse. Stimpy was not recognized by PC, then port couldnt be selected for uploading codes via USB. I've followed the same procedure like with Ren....
After that, PC still doesnt recognize the board and again port is not able on IDE. In the same way that with Ren, now led on 13 blinks (lapse of 0.5 secs).
What could be wrong w/ them?
Many thanks in advance. From Ren, from Stimpy and of course, from me!