MEGA 2560 Upload Error Mac

Hello all,

I'm new to Arduino and I've been trying to get a red LED to flash on and off however when I try to upload my code I keep getting an error. What does this error mean and how can I fix it?

Arduino: 1.8.12 (Mac OS X), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Sketch uses 1448 bytes (0%) of program storage space. Maximum is 253952 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 8183 bytes for local variables. Maximum is 8192 bytes.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
An error occurred while uploading the sketch

Have you selected the board and com port?

Edit: I see the board is selected. Check the com port

Install the board's package core via the Arduino IDE:

· Tools > Board > Boards Manager
· Search for "Arduino AVR Boards"
· From the drop-down menu select latest version
· Click "Install/update"
· Wait for installation to finish
· Click "Close" and restart your IDE.
. Plug your board back to the computer and select the board and port via tools.
See https://www.arduino.cc/en/Guide/Cores
Use a data USB cable and do not use a USB hub or USB 3.0 port.