Trinket (and Pro Trinket) do not have a USB-serial converter chip on board, this is how we can make them so small! Instead of a serial console, the Trinket is programmed directly over USB. No COM/Serial port is used at all!
Trinket's bootloader is finicky about USB 3 ports, and might not work on them. Try connecting to any USB 2 ports you have or go through a USB 1 or USB 2 hub (nearly all hubs are v2 or v1 instead of v3)
If you're running an older version of the IDE, there may not be support for 12MHz software serial. Find your Arduino installation folder (if you're using a Mac you may need to explore the package) and locate the libraries/SoftwareSerial folder and open up SoftwareSerial.h inside. Add the following lines before
#elif F_CPU == 8000000
#elif F_CPU == 12000000 static const DELAY_TABLE PROGMEM table[] = { // baud rxcenter rxintra rxstop tx { 115200, 1, 11, 11, 8, }, { 57600, 6, 26, 26, 23, }, { 38400, 14, 41, 42, 39, }, { 31250, 19, 51, 52, 49, }, { 28800, 23, 56, 56, 53, }, { 19200, 37, 86, 86, 83, }, { 14400, 52, 116, 116, 113, }, { 9600, 82, 175, 175, 173, }, { 4800, 172, 354, 354, 351, }, { 2400, 350, 711, 711, 708, }, { 1200, 707, 1425, 1425, 1422, }, { 300, 2850, 5711, 5711, 5708, }, }; const int XMIT_START_ADJUSTMENT = 5;
Once added, save and restart the IDE
There's a slight bug in the Optiboot bootloader where it has a busy-wait loop while reading commands. If there is some noise on the RX pin, it can start the bootloader which then waits forever for more data
You can solve this in one of two ways
- Connect a pullup resistor of anywhere from 2K - 47K from the RX pin to the 5V pin (Pro Trinket 5V) or 3V pin (Pro Trinket 3V)
- Re-burn the bootloader with our patched version that seems to fix this bug by timing out on noisy RX reads
Try a different USB cable. Some cables are "charge only" and don't have data lines.
And even with data cables, some work better than others.
We haven't personally tried it but some customers report that - Yes you can use an EZ-Link with a 3V or 5V Pro Trinket in FTDI-programming-mode
Page last edited March 08, 2024
Text editor powered by tinymce.