FLORA and GEMMA ICSP - Adafruit Industries · 2018-08-22 · It doesn't really matter what color...

16
FLORA and GEMMA ICSP Created by Becky Stern Last updated on 2018-08-22 03:42:16 PM UTC

Transcript of FLORA and GEMMA ICSP - Adafruit Industries · 2018-08-22 · It doesn't really matter what color...

Page 1: FLORA and GEMMA ICSP - Adafruit Industries · 2018-08-22 · It doesn't really matter what color goes where, but for clarity and consistency you may want to do like we do. Tin all

FLORA and GEMMA ICSPCreated by Becky Stern

Last updated on 2018-08-22 03:42:16 PM UTC

Page 2: FLORA and GEMMA ICSP - Adafruit Industries · 2018-08-22 · It doesn't really matter what color goes where, but for clarity and consistency you may want to do like we do. Tin all

2349

Guide Contents

Guide ContentsOverviewReprogram FLORA over ICSPReprogram GEMMA over ICSP

© Adafruit Industries https://learn.adafruit.com/flora-and-gemma-isp Page 2 of 16

Page 3: FLORA and GEMMA ICSP - Adafruit Industries · 2018-08-22 · It doesn't really matter what color goes where, but for clarity and consistency you may want to do like we do. Tin all

Overview

On each Arduino-compatible chip runs a tiny program called the bootloader. The bootloader is a helper that reads yourArduino sketch over USB and burns it into the little microcontroller brain.

FLORA and GEMMA both come with bootloaders when your get them in the mail, but there are a few reasons you mightwant to know how to burn your own bootloader, besides the nerd cred. Maybe you’re an AVR hacker and you want tochange the bootloader’s functions, or maybe you’re building your own circuit and need to flash a new blank chip. Andsometimes it’s possible to corrupt your bootloader-- flashing it again can bring the board back to life.

Bootloading a standard Arduino Uno is easy-- it has an ISCP connector on board. But to connect to FLORA and GEMMA,we have to get a little more creative. Read on to learn how to bootload Adafruit's sewable microcontrollers.You will need:

USBtinyISP AVR Programmer Kit (https://adafru.it/dFQ)FLORA (https://adafru.it/dgx) or GEMMA (https://adafru.it/cSg)2x3 header (for FLORA)6-pin box header, six alligator clips, soldering tools, heat shrink and zip tie (for GEMMA)

© Adafruit Industries https://learn.adafruit.com/flora-and-gemma-isp Page 3 of 16

Page 4: FLORA and GEMMA ICSP - Adafruit Industries · 2018-08-22 · It doesn't really matter what color goes where, but for clarity and consistency you may want to do like we do. Tin all

Reprogram FLORA over ICSP

© Adafruit Industries https://learn.adafruit.com/flora-and-gemma-isp Page 4 of 16

Page 5: FLORA and GEMMA ICSP - Adafruit Industries · 2018-08-22 · It doesn't really matter what color goes where, but for clarity and consistency you may want to do like we do. Tin all

Insert the long legs of a six-pin ICSP male header into

the smaller connector on the USBtinyISP.

© Adafruit Industries https://learn.adafruit.com/flora-and-gemma-isp Page 5 of 16

Page 6: FLORA and GEMMA ICSP - Adafruit Industries · 2018-08-22 · It doesn't really matter what color goes where, but for clarity and consistency you may want to do like we do. Tin all

Be sure the USBtinyISP's jumper is in place. Plug in your

FLORA over USB and also connect your USBtinyISP to

your computer over USB.

Connect the pins to FLORA as shown, using diagonal

pressure to make good contact between the legs of the

header and the ISCP pads on FLORA.

© Adafruit Industries https://learn.adafruit.com/flora-and-gemma-isp Page 6 of 16

Page 7: FLORA and GEMMA ICSP - Adafruit Industries · 2018-08-22 · It doesn't really matter what color goes where, but for clarity and consistency you may want to do like we do. Tin all

Select Adafruit Flora from the Boards menu.

Select USBtinyISP from the Programmer menu.

(https://adafru.it/dFP)

© Adafruit Industries https://learn.adafruit.com/flora-and-gemma-isp Page 7 of 16

Page 8: FLORA and GEMMA ICSP - Adafruit Industries · 2018-08-22 · It doesn't really matter what color goes where, but for clarity and consistency you may want to do like we do. Tin all

Hold the ICSP connector in place and click Burn Bootloader from the Tools menu. It will take a while, even longer than aminute. Sit tight and don't let go until the status reads Done burning bootloader. Congrats, you're done!

© Adafruit Industries https://learn.adafruit.com/flora-and-gemma-isp Page 8 of 16

Page 9: FLORA and GEMMA ICSP - Adafruit Industries · 2018-08-22 · It doesn't really matter what color goes where, but for clarity and consistency you may want to do like we do. Tin all

Reprogram GEMMA over ICSP

© Adafruit Industries https://learn.adafruit.com/flora-and-gemma-isp Page 9 of 16

Page 10: FLORA and GEMMA ICSP - Adafruit Industries · 2018-08-22 · It doesn't really matter what color goes where, but for clarity and consistency you may want to do like we do. Tin all

Slide a small piece of heat shrink tubing onto the red

wire, then strip the end and solder to the corner pin on

the socket as shown.

Slide the heat shrink over the joint and shrink with a heat

gun.

Repeat with the black alligator clip at the other corner

pin.

© Adafruit Industries https://learn.adafruit.com/flora-and-gemma-isp Page 10 of 16

Page 11: FLORA and GEMMA ICSP - Adafruit Industries · 2018-08-22 · It doesn't really matter what color goes where, but for clarity and consistency you may want to do like we do. Tin all

It doesn't really matter what color goes where, but for

clarity and consistency you may want to do like we do.

Tin all the rest of the pins and prep the alligator clips by

stripping and tinning the ends of the wires and sliding on

small pieces of heat shrink tubing.

Solder on the wires and shrink the heat shrink. Double

check the wires are all insulated and connected

securely, then cinch them together with a zip tie.

© Adafruit Industries https://learn.adafruit.com/flora-and-gemma-isp Page 11 of 16

Page 12: FLORA and GEMMA ICSP - Adafruit Industries · 2018-08-22 · It doesn't really matter what color goes where, but for clarity and consistency you may want to do like we do. Tin all

© Adafruit Industries https://learn.adafruit.com/flora-and-gemma-isp Page 12 of 16

Page 13: FLORA and GEMMA ICSP - Adafruit Industries · 2018-08-22 · It doesn't really matter what color goes where, but for clarity and consistency you may want to do like we do. Tin all

These photos better illustrate which color wire is

attached to each pin.

© Adafruit Industries https://learn.adafruit.com/flora-and-gemma-isp Page 13 of 16

Page 14: FLORA and GEMMA ICSP - Adafruit Industries · 2018-08-22 · It doesn't really matter what color goes where, but for clarity and consistency you may want to do like we do. Tin all

Power GEMMA over USB or with a battery and be sure the USBtinyISP's jumper is NOT in place.

Attach the alligator clips to GEMMA as shown:Black wire -> GNDRed wire -> 3VoBlue wire -> A1/D2 (SCL/SCK)White wire -> D0 (SDA/MOSI)Green wire -> D1 (MISO)

Then connect the cable squid to the USBtinyISP. The plug will only fit in one direction.

© Adafruit Industries https://learn.adafruit.com/flora-and-gemma-isp Page 14 of 16

Page 15: FLORA and GEMMA ICSP - Adafruit Industries · 2018-08-22 · It doesn't really matter what color goes where, but for clarity and consistency you may want to do like we do. Tin all

Flip GEMMA over and hold the yellow clip to the reset pad on the back. Get comfortable-- you will have to hold it firmlyduring the flashing process, which is shorter than FLORA's since the bootloader is a smaller size.

Select Adafruit Gemma 8MHz from the Boards menu.

Select USBtinyISP from the Programmer menu.

© Adafruit Industries https://learn.adafruit.com/flora-and-gemma-isp Page 15 of 16

Page 16: FLORA and GEMMA ICSP - Adafruit Industries · 2018-08-22 · It doesn't really matter what color goes where, but for clarity and consistency you may want to do like we do. Tin all

Hold the yellow clip to the reset pin and click Burn Bootloader from the Tools menu. Don't let go until the status readsDone burning bootloader. You're done, congrats!

© Adafruit Industries Last Updated: 2018-08-22 03:42:11 PM UTC Page 16 of 16