Programming With Avrdude; The Short Way - adafruit learning system Trinket Introduction Manual

Table of Contents

Advertisement

Programming with AVRdude

For more technical users, rather than using the Arduino IDE, they may want to program the
Trinket directly with AVR-GCC as the compiler, vi/emacs as their editor and AVRdude as the
uploader. That's easy to do!
Target the Attiny85 as the chip used in avr-gcc, with F_CPU at 8MHz using the internal
oscillator.
To use avrdude a minor change must be made to to avrdude.co nf. To figure out where
the avrdude.co nf is, open up a command window (windows: cmd, mac: Terminal, linux:
rxvt etc) and type in avrdude -v
Look for the line System wide co nfiguratio n file is ..... thats where avrdude.co nf is.
Because the USB bootloader is a little different than an off-the-shelf programmer, we have
to update the configuration file to have a longer erase delay. This does not affect
programming bare Attiny85 chips, so you can use this configuration file with Trinkets or raw
chips without any problems.

The Short Way

Download the new avrdude.co nf by clicking on the button, rename the old avrdude.co nf
file to avrdudeco nf.bak and copy this new one into the same directory
© Adafruit
Industries
Download the updated Trinket-
friendly avrdude.conf
http://adafru.it/cDZ
https://learn.adafruit.com/introducing-trinket
Page 29 of 48

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Trinket and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents