Compiling Teensy 3.2 using JetBrains CLion

Status
Not open for further replies.

wholder

New member
The CLion by JetBrains is a nice development environment, but I've been unable to figure out how to configure out how configure CLion to use the GNU toolchain to compile code for the Teensy 3.2 on Mac Os. I was able to install the toolchain and set the $PATH and verify that the toolchain runs, but the details of how to configure CLion (which uses CMake) to build the project have eluded me. I'm working with JetBrains to try and figure this out and, based on the feedback from them, this should be possible. But, unfortunately, while I can code C/C++, I'm not very skilled with configuring the build process.

Has anyone else tried to use CLion for Teensy development on MacOs? If so, can you provide any pointers, such as a sample project that's set up to compile and build for a Teensy?

Wayne
 
A bit late of a reply, however someone else might be interested in using the excellent clion IDE:

Try the platform.io plugin, you can install it in the configure|plugin section. See here: https://plugins.jetbrains.com/plugin/13922-platformio-for-clion
It will need an installation of the platformio core https://docs.platformio.org/en/latest/core/installation.html
The platformio plugin contains all current teensy models (not 4.1 at this moment) as one of the many target platforms.

Check out also https://docs.platformio.org/en/latest/platforms/teensy.html where you find hints for configuring USB type, examples etc.

HTH
 
Last edited:
clion+platformio with teensy 4.1

I am wondering about the 4.1 issue because the Visual Studio Version of platformio already includes Teensyduino 1.52 with 4.1.

I just updated/upgraded (running Mac OS) and, tada, teensy 4.1 is now supported too :cool:
 
Status
Not open for further replies.
Back
Top