Manage the Adafruit AVR Trinket and Trinket Pro boards¶
Install¶
To use the Adafruit AVR Trinket and Trinket Pro boards,
-
Ensure the Arduino tools, CLI or IDE, are installed.
-
Ensure the
arduino-cli.yaml
configuration file for Arduino-CLI or the Additional boards manager URLs for Arduino IDE includes
https://adafruit.github.io/arduino-board-index/package_adafruit_index.json
-
Open a Terminal window.
-
Run
$ |
|
For both the Trinket and Trinket Pro, Adafruit acknowledges stability issues with the direct USB upload.
For the Trinket Pro, Adafruit recommends to use a standard FTDI programmer for a better reliability.
For the Adafruit M0 and M4 boards, Adafruit offers a drag-and-drop feature to flash the board. Called UF2 for USB Flashing Format, this option turns the boards into a mass storage device. However, the executable needs to be converted into a .uf2
file. The utility for the conversion is provided with the Adafruit nRF52 boards package.
For more information,
-
Please refer to the section Install the FTDI driver and to the page Using FTDI Cables on the Adafruit website.
-
Please refer to the page UF2 Bootloader Details and Updating the bootloader .
Upload¶
The Trinket and Pro Trinket boards from Adafruit require a specific procedure.
For the Pro Trinket, Adafruit recommends to use a standard FTDI programmer for a better reliability. For more information,
- Please refer to the Using FTDI Cables page on the Adafruit website.
Proceed as follow:
-
Plug the Adafruit board in.
-
Launch any of the targets All, Upload or Fast.
-
Wait for the message window:
- Press the Reset button on the board.
-
The red LED starts flashing.
-
Click on OK.
By default, those boards don’t feature a serial-to-USB communication.
For more information,
- Please refer to the pages Programming with AVRdude for the Trinket boards and Setting-Up the Arduino IDE for the Pro Trinket boards.