I have three MEGA boards , two identical. I have been working with one board developing code and able to program it successfully.
I just took another one out of the box and tried to program it with the same code and it refuses to program. I am using the USB interface to the MEGA
I get this message when I am connected to the one I have been programming all along:
"
Sketch uses 9026 bytes (3%) of program storage space. Maximum is 253952 bytes.
Global variables use 754 bytes (9%) of dynamic memory, leaving 7438 bytes for local variables. Maximum is 8192 bytes.
"
When I unplug the MEGA and plug the other MEGA in and try to program it identically I get this message:
"
Sketch uses 9026 bytes (3%) of program storage space. Maximum is 253952 bytes.
Global variables use 754 bytes (9%) of dynamic memory, leaving 7438 bytes for local variables. Maximum is 8192 bytes.
avrdude: ser_open(): can’t open device “\.\COM5”: The system cannot find the file specified.
avrdude: ser_drain(): read error: The handle is invalid.
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.
avrdude: stk500v2_ReceiveMessage(): timeout
the selected serial port
does not exist or your board is not connected
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
"
When I plug a third MEGA in, it does not program either?
What is going on?