View Full Version : Teensy 3.x Compiler?

12-19-2013, 04:57 PM
I'm a huge fan of the Teensy/Teensy++ 2.0 (developing with C) and am eager to work with the Teensy 3.x but I'm confused about the compiler toolchains. -- I've been studying the product pages but haven't been able to figure out the suggested toolchains.

12-19-2013, 05:36 PM
For Teensy 3.X, the only toolchain is in the Teensyduino installer.


Run the installer. You don't have to ever use Arduino, but I recommend at least using Arduino to upload the LED blink and make sure everything works.

Inside hardware/teensy/cores/teensy3 is a sample makefile. See the comments regarding the toolchain directory. You can delete the rest of Arduino.

Sometime next year I'm going to make a C-only download without Arduino. Until then, you have to get it by installing into Arduino and then grab the parts you want.

12-07-2018, 05:14 PM
Would be nice to have a C download with a sample makefile to get people started. Also, some code samples on how to manipulate ports, timers and UART / SPI would be nice.

I'm planning to make an SD Music Player with an HifyBerry DAC+ Pro which has an I2S interface. For that I require a Teensy 3 (which has I2S on board). I'm currently still using Teensy 2 (AVR), but more and more boards are requiring 3.3V, so I'm gonna have to switch sometime in the future.

12-07-2018, 06:01 PM
To be clear, you have that, there is a sample makefile in the Teensy core:

You can also download the latest ARM gcc and use it instead of the one included with Teensyduino:

I use hand coded makefiles or cmake for all of my projects. They all have unique requirements and I need to be able to lock down the Teensy configuration (processor, CPU speed, F_BUS) and modify some of the "core" libraries, like hardware serial, to use larger buffers. Using makefiles lets me keep those changes project specific and then also keep a clean Arduino/Teensyduino install for developing libraries, tutorials, or doing quick prototyping.

The standard Teensy cores will require C++, but I've managed to create a C only version as well (with a lot of lost functionality - the C only version only supports chip startup, analog read/write, eeprom, hardware serial, and usb serial).

12-07-2018, 06:10 PM
Sometime next year I'm going to make a C-only download without Arduino.

For what purpose?

12-07-2018, 06:26 PM
For what purpose?
Note the date of posting 2013

12-07-2018, 06:42 PM
LOL. Thank you KurtE! That is very good advice.