As an almost everyday Android Studio user for past 2 years I feel like my whole programming effectiveness and efficiency became kind of ‘tightly coupled’ with IntelliJ’s IDE product family. Probably that’s why, when my new Arduino Yún finally arrived, the first thing on my to-do list was configuring a CLion template project. Most of IDE plugins and other minor solutions seemed not to be working, and that’s when I’ve found out about…
In short words, it provides a very elegant, simple mechanism to generate all the code needed by CLion (and many other IDE’s) to get the thing going. My Yún model turned out to be the problematic, temporarily not working marginal case. That gave me an opportunity to get to know Ivan, the creator of PlatformIO himself (cheers!). Watching Ivan fast fixing these PlatformIO Python scripts on my computer through TeamViewer was an interesting experience :). Anyway, you can surely count on solid support here.
起因因为keil的难用以前开发stm32,我都是使用stm32cube生成了项目文件之后,用clion编辑,然后用keil编译下载加Debug.说实话,整体感觉还不错,但总感觉怪怪的.也曾尝试过SW4STM32和TrueStudio等,但是用eclipse改的软件,总是喜欢不起来.安装了最新的clion 2019之后,突然发现新建工程时竟然有stm32cubeMX的选项!!! CLion is also available as a snap package. If you’re on Ubuntu 16.04 or later, you can install CLion from the command line. Sudo snap install clion -classic. CLion and Arduino via Platform.io. GitHub Gist: instantly share code, notes, and snippets. Using CLion to develop Arduino libraries. Ask Question Asked 3 years, 1 month ago. Active 1 year, 4 months ago. Viewed 1k times 4. I'm currently using Kate and Arduino IDE to develop a library for Arduinos (actually rather little is Arduino specific but it's easy to just upload examples from A-IDE to physical hardware). But now I've reached the. Visual Studio ¶. The Microsoft Visual Studio (Free) is an integrated development environment (IDE) from Microsoft. Visual Studio includes a code editor supporting IntelliSense (the code completion component) as well as code refactoring.
Assuming that you’ve already got the CLion and Python 2.6+ you can start installation of PlatformIO with below super-quick command:
Now you need to generate the code in reference to PlatformIO’s get started section, in my case it’s:
Open CLion and import YunMe project. Create a new file in /src directory:
Build the project [Run->Build] (⌘F9) to test it out. You can also use below CLI command:
Your Arduino should start blinking now. 🙂
Open CMakeLists.txt file in root directory and modify it like below:
Clion Arduino Download
CLion with highlighted syntax successfully building and uploading!
If you’ve encountered an ‘Please specify ‘upload_port’ (…)’ error message, you need to manually find out your Arduino’s upload port and add it to configuration. Make sure it’s plugged with USB and execute:
Edit platformio.ini and add proper upload_port configuration line: