Here’s a quick guide for programming the firmware on a device using a Teensy micro-controller.
Things you will need:
- A known working usb-micro-b data cable. If you have a plain “charging cable” that comes with some devices, it will not work
- A Teensy board or device using a Teensy ( a 16n faderbank perhaps?)
- A firmware HEX file or the Full Source Code that you want to flash.
References: PJRC (the makers of Teensy) have a tutorial on their website on how to get up and running. Maybe you should go read that page right now. Yeah? good… I’ll wait.
(Yeah- you did’t go read all that, did you?
) OK then - I’ll summarize.
loading a HEX file
If you just want to load a HEX file to the Teensy, you just need the Teensy Loader application and your HEX file. Get Teensy Loader
-
step 1: connect your teensy to your computer with a known working USB-Micro-B to USB-A data cable.
-
step 2: launch teensy loader
-
step 3: Drop the HEX file onto Teensy Loader
-
step 4: Push the button on the Teensy and Teensy Loader should send the program to the Teensy.
-
troubleshooting - if this doesn’t work, see the Teensy Loader link and follow the instructions for your operating system. RTFM!
how about compiling the firmware myself?
In this case maybe you’ve written your own program or made changes to some existing code and you need to compile it and send it to the teensy,
-
step 0: connect your teensy to your computer with a known working USB-Micro-B to USB-A data cable (you should have already done this above)
-
step 1: download and install Arduino 1.8.8 (the most recent version at the time of this post).
a) “but I already have the arduino application installed from a couple years ago!” Don’t care! - get the most recent version.
-
step 2: download and install Teensyduino 1.45
a) again - reinstall even if you think you don’t need to.
-
step 3: launch Ardunio
-
step 4: in the Arduino TOOLS menu set some preferences. In many cases it will be these options, but will depend on the project and the specific board being used.
a) Tools->USB Type= Serial, MIDI or Serial+MIDI
b) Tools->Board = Teensy 3.1/3.2 or Teensy 3.6
c) Tools->CPU Speed = 120mhz (overclock) specific to teensy 3.2
-
step 5: open a program you want to compile
-
step 6: click the “Verify” button to compile and check for errors
a) errors will show up in red in the bottom half of the window
-
step 7: click the “Upload” button to flash the firmware to the Teensy.
a) at this point the Teensy Loader application should launch and send the program to the Teensy.
b) in some cases, there may be an issue and you’ll need to push the little button on the Teensy itself to get the program process going.
Got Problems? Yeah me too… but sorry, your problems are beyond the scope of this lesson. 