avrdude verification error; content mismatch, broken pipe (expected 4, got -32)

Hello, I am using Mac OS 10.12.3 Sierra with Arduino IDE 1.8.1. This is my first time to use Gemma. I followed the Introducing Gemma section to install and configured Arduino IDE to work with the Gemma. There is a section on About Bootloader. Do I need to do anything given that I use the Mac OS? I skipped this section and after following the steps in Setting up with Arduino IDE, I uploaded the Blink code when the red light on the Gemma was flashing. I got a bunch of error in orange. Could you please let me know what to do? I have already set the Programmer to USBtinyISP and the board to Adafruit Gemma 8MHz. Under Port, nothing is checked as the only available ones are: cu-Bluetooth-Incoming-Port and cu-MyMac-Bluetooth-PDA-Sync. Interestingly, the red led continues to flash. It never stops.

avrdude: verification error; content mismatch
WARNING: Category '' in library EEPROM is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library SPI is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library SoftwareSerial is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library Wire is not valid. Setting to 'Uncategorized'
Warning: platform.txt from core 'Arduino AVR Boards' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}". Consider upgrading this core.
Sketch uses 816 bytes (15%) of program storage space. Maximum is 5310 bytes.
Global variables use 11 bytes of dynamic memory.

avrdude: error: usbtiny_transmit: Broken pipe

avrdude: error: usbtiny_send: Broken pipe (expected 64, got -32)

avrdude: error: usbtiny_receive: Broken pipe (expected 4, got -32)

avrdude: error: usbtiny_receive: Broken pipe (expected 4, got -32)

avrdude: error: usbtiny_receive: Broken pipe (expected 4, got -32)

avrdude: error: usbtiny_receive: Broken pipe (expected 4, got -32)

avrdude: error: usbtiny_receive: Broken pipe (expected 4, got -32)

avrdude: error: usbtiny_receive: Broken pipe (expected 4, got -32)

avrdude: error: usbtiny_receive: Broken pipe (expected 4, got -32)

avrdude: error: usbtiny_receive: Broken pipe (expected 4, got -32)

avrdude: error: usbtiny_receive: Broken pipe (expected 4, got -32)

avrdude: error: usbtiny_receive: Broken pipe (expected 4, got -32)

avrdude: error: usbtiny_receive: Broken pipe (expected 4, got -32)

avrdude: error: usbtiny_receive: Broken pipe (expected 4, got -32)

avrdude: error: usbtiny_receive: Broken pipe (expected 4, got -32)

avrdude: error: usbtiny_receive: Broken pipe (expected 4, got -32)

avrdude: error: usbtiny_receive: Broken pipe (expected 4, got -32)

avrdude: error: usbtiny_receive: Broken pipe (expected 4, got -32)

avrdude: error: usbtiny_receive: Broken pipe (expected 4, got -32)

avrdude: error: usbtiny_receive: Broken pipe (expected 4, got -32)

avrdude: error: usbtiny_receive: Broken pipe (expected 4, got -32)

avrdude: error: usbtiny_receive: Broken pipe (expected 4, got -32)

avrdude: error: usbtiny_receive: Broken pipe (expected 4, got -32)

avrdude: error: usbtiny_receive: Broken pipe (expected 4, got -32)

avrdude: error: usbtiny_receive: Broken pipe (expected 4, got -32)

avrdude: error: usbtiny_receive: Broken pipe (expected 4, got -32)

avrdude: error: usbtiny_receive: Broken pipe (expected 4, got -32)

avrdude: error: usbtiny_receive: Broken pipe (expected 4, got -32)

avrdude: error: usbtiny_receive: Broken pipe (expected 4, got -32)

avrdude: error: usbtiny_receive: Broken pipe (expected 4, got -32)

avrdude: error: usbtiny_receive: Broken pipe (expected 4, got -32)
avrdude: verification error, first mismatch at byte 0x0000
0x00 != 0x1d
avrdude: verification error; content mismatch
avrdude: verification error; content mismatch

oceantable:
Under Port, nothing is checked as the only available ones are: cu-Bluetooth-Incoming-Port and cu-MyMac-Bluetooth-PDA-Sync.

That's normal with Gemma. It doesn't indicate a problem.

oceantable:
WARNING: Category '' in library EEPROM is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library SPI is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library SoftwareSerial is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library Wire is not valid. Setting to 'Uncategorized'
Warning: platform.txt from core 'Arduino AVR Boards' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}". Consider upgrading this core.

This means somehow you're using a very old version of Arduino AVR Boards. It's possible this is the cause of the problem. Please do this:

  • Tools > Board > Boards Manager
  • Wait for downloads to complete
  • Click on "Arduino AVR Boards"
  • Click "Update"
  • Wait for update to complete
  • Click "Close"

After that try uploading again just in case the newer version of avrdude included with the latest Arduino AVR Boards version will fix the problem. It looks like the problem you're encountering is described here:

pert:
That's normal with Gemma. It doesn't indicate a problem.
This means somehow you're using a very old version of Arduino AVR Boards. It's possible this is the cause of the problem. Please do this:

  • Tools > Board > Boards Manager
  • Wait for downloads to complete
  • Click on "Arduino AVR Boards"
  • Click "Update"
  • Wait for update to complete
  • Click "Close"

After that try uploading again just in case the newer version of avrdude included with the latest Arduino AVR Boards version will fix the problem. It looks like the problem you're encountering is described here:
Setting up with Arduino IDE | Introducing Gemma | Adafruit Learning System

Thanks. It is working now.