Issues Uploading Program to Arduino Mega

Hey everyone, I keep getting this issue while trying to upload my program into the arduino:

Looking for upload port...
Auto-detected: COM8
Uploading .pio\build\megaatmega1280\firmware.hex
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x73
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x74
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x61
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x72
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x74
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x0a
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x4d
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x61
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x72
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x6c

avrdude done.  Thank you.

*** [upload] Error 1
================================================================== [FAILED] Took 11.88 seconds ==================================================================
The terminal process "C:\Users\rodri\.platformio\penv\Scripts\platformio.exe 'run', '--target', 'upload'" terminated with exit code: 1.

The upload port is correct, checked it on device manager. Also the code compiles just fine, with no problems or errors, it is the upload that is not working.
Also I am running 2 Serial Monitors on my code, both set at a baud rate of 57600. Could this be an issue? This is an Arduino Mega 2560.

Thank you all.

Ok nevermind.

I had the board set for Arduino AT mega 1280, I am using 2560

1 Like