PlatformIO Community

Upload error 1 when uploading to Mayfly Data Logger v0.5

I am having issues uploading the code onto the Mayfly board. The board is functioning properly on the Arduino IDE. I was able to compile the code and upload it onto the board once but I am now unable to upload new code onto the board. I am using a mac and have attempted running this on the Atom IDE and VScode IDE. How can I resolve this issue?

Here is my error message:

Linking .pio/build/mayfly/firmware.elf
Checking size .pio/build/mayfly/firmware.elf
Memory Usage -> http://bit.ly/pio-memory-usage
DATA: [=== ] 26.9% (used 4411 bytes from 16384 bytes)
PROGRAM: [===== ] 48.2% (used 62740 bytes from 130048 bytes)
Configuring upload protocol...
AVAILABLE: arduino
CURRENT: upload_protocol = arduino
Looking for upload port...
Auto-detected: /dev/cu.usbserial-A1062BH2
Uploading .pio/build/mayfly/firmware.hex
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xe3
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x85
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x85
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xe7
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xe6
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x85
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x85
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xa7
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xa7
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x65

avrdude done. Thank you.

*** [upload] Error 1
========================== [FAILED] Took 6.04 seconds ==========================

My platformio.ini file settings are:

[env:mayfly]
monitor_speed = 115200
board = mayfly
platform = atmelavr
framework = arduino
upload_port = /dev/cu.usbserial*