The bootloader provided by Dealextreme in Teensy boards is not compatible with Teensy Loader (At least the boards I have with loader 1.06).
In order to have a better (non-proprietary) bootloader we can choose from three provided by LUFA:
From an Arduino point of view, CDC is the best choice now, but DFU procedure is similar.
I’ve used an avrdragon with avrdude. Here is the connection between Teensy and avrdragon ISP connector:
And now the software part:
- Download LUFA (wget http://lufa-lib.googlecode.com/files/LUFA-111009.zip)
- cd LUFA/Bootloades/CDC
- gedit makefile
MCU=at90usb162BOARD= TEENSYF_CPU = 16000000FLASH_SIZE_KB = 16
- WOW!!! We have BootloaderCDC.hex
sudo avrdude -v -pusb162 -cdragon_isp -Pusb -Uflash:w:BootloaderCDC.hex
Using ‘lsusb’ you should see something like:
Bus 003 Device 004: ID 03eb:204a Atmel Corp. LUFA CDC Class Bootloader
Now we can upload code using CDC bootloader:
sudo avrdude -v -pusb162 -cavr109 -P/dev/ttyACM0 -Uflash:w:blink.hex
Due to reset circuit on Teensy 1.0 you must repower the board in order to launch the uploaded app (reset button always enters to bootloader mode).