Trouble Uploading to Arduino Mega on Mac

I’ve been having issues recently with my Arduino Mega uploading sketches. It was working for the longest time and now it keeps giving me time out errors. Are there possibly cached fils I can delete to re establish the link? Looking for suggestions. Error message below.

Configuring upload protocol…
AVAILABLE: wiring
CURRENT: upload_protocol = wiring
Looking for upload port…
Using manually specified: /dev/cu.usbmodem141301
Uploading .pio/build/megaADK/firmware.hex
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

avrdude done. Thank you.

Ok. I solved my problem. I had something hooked up to pin 0 and 1 which kept the board from communicating properly. Moved that to a different pin and it worked.