Arduino UNO to Arduino MEGA 2560 upload troubles

Hi everyone,

I'm currently having a problem with my MEGA 2560. I have a project that compiles on my UNO, but it doesn't have enough memory to run it at its full potential, so I'm moving it to my MEGA.

For some reason, however, the project wont upload to my MEGA (when it uploaded fine to the UNO, save a warning message about memory). I keep getting a large block of errors about things not working. I looked at other posts that recommended drivers, but the drivers didn't help.

Any advice? I'm pretty new at this.

The errors are shown below:

Arduino: 1.8.9 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Sketch uses 20070 bytes (7%) of program storage space. Maximum is 253952 bytes.
Global variables use 1659 bytes (20%) of dynamic memory, leaving 6533 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
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
the selected serial port avrdude: stk500v2_getsync(): timeout communicating with programmer
does not exist or your board is not connected

Never mind! I found out I needed to change which port it was using. (The UNO was using COM5 but my MEGA needed COM6)

Thanks for taking the time to post an update JPlow. I'm glad to hear you are able to upload now. Enjoy!
Per