Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 7 of 7

Thread: Programming Teensy 3.6 without Arduino IDE.

  1. #1

    Programming Teensy 3.6 without Arduino IDE.

    I want to learn how to program ARM processors using embedded C for my Embedded Systems course. Hence I don't want to use the Arduino IDE & Libraries(Teensyduino). I already own a Teensy 3.6. I have programmed an 8051 before & I am going to start simulating code (& circuits) on an LPC2103 using Keil & Proteus. But since I have a Teensy, I want to start building physical projects using embedded C only.

    I have read(forums) which suggest that the Teensy 3.x use a bootloader chip with proprietary code. This would make it simply not possible to program the Teensy 3.6 without using the Teensyduino software. Is this true?

    How do I go about burning my Embedded C code into the Teensy 3.6?
    Which are the recommended IDE's & compilers for programming the Teensy 3.6 in Embedded C?

  2. #2
    Senior Member
    Join Date
    Jul 2014
    So, no C++?
    well, all the code (C,C++,Makefile) is in
    you have to find and download ARM compiler that understand embedded C extensions and generate hex files
    you can download the code to teensy with command line loader

    Or you make yourself life easier and download Arduino and install Teensyduino, where all you need is bundled, and program in plain and regular C.
    You can still use any editor to create a program, use the makefile to compile and the command line loader to download program

    you can install eclipse, visual studio, use keil, if it is only the IDE that bothers you
    or buy yourself a non-teensy ARM processor that you have to program with debugger/HW-programmer.

  3. #3
    Senior Member
    Join Date
    Apr 2013
    Re the bootloader IC, the code it runs is closed source, but all it is doing is getting code into the main chip RAM to bring up USB to get a hex file from the PC, and that protocol is open(ish) - see below. Making your hex file is a case of firing a compiler that knows ARM at the language of your choice.

    While the easiest way to get code onto a Teensy is the Teensyduino download program you get with an Arduino install (and would suggest using that as a saniety check first) there is a common line version + source available to either use in a script or embed into something bigger, or even turn into your own IDE.

  4. #4
    Is there no header file for the processor that I can use. Could it be this: ?
    Last edited by jonathanrjpereira; 09-07-2017 at 08:37 AM. Reason: link

  5. #5
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    If I understand the question - any files installed with TeensyDuino are designed for use with the IDE and toolchain provided. As noted a makefile interface to the toolchain can be used in place of the IDE.

    If using an alternate ARM toolchain - those processor definition files would be unique to the tools in use and need to be found or defined.

  6. #6
    I'm just starting ARM programming. I really don't know what a makefile is. I'm currently going to try and upload the code to my Teensy 3.6 using Platformio & the kinets.h header file functions.

  7. #7
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    If you're just beginning, I highly recommend using the Arduino IDE until you've gained some experience. You can still edit the core library files, and you have full access to all hardware registers and features from the Arduino code. Do yourself a favor and use the easy tool path, so you can focus on learning the hardware. Mess with the tools later, after you've learned more...

    Also, if you're going to get into the low-level details, you really should buy this book:

    You can get the reference manual here, but it only covers the peripherals from Freescale. For the ARM part, you need that book.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts