Using a PEmicro Multilink Debug Probe With CLion
In this video, we show how to use CLion together with a PEmicro Multilink debug probe in order to develop on an ARM-based microcontroller.
Custom Compilers in CLion: A Quick Guide to Using an Arbitrary Compiler in CLion
CLion is an IDE that offers a lot of features to help developers. It shows documentation popups, detects mistakes on the fly, suggests fixes, and more. An internal code analyzer always works in the background, analyzing C and C++ code as you type. C and C++ are challenging languages for automatic analyzers because compiler-specific data is required to parse the code correctly. The engine needs to know the header search paths, predefined macro definitions, and some other details. For a predefined set of known compilers, CLion runs the project's compiler with special options and gathers the req
Developing for ESP32 With CLion on Windows
This tutorial shows how to set up a project in CLion for ESP32 development on Windows, covering all the necessary steps in great detail.
Working With Meson in CLion Using Compilation DB
During the recent Q&A session on Reddit, we got a surprising number of questions about our plans for Meson support. Today we are going to show you how you can already use Meson-based projects in CLion. For this we will use compilation database support in CLion. Meson is a relatively new build system that strives to be fast yet simple to use. It converts build scripts written in a Python-like language into one of the backend build systems: Ninja (the default and recommended one), Visual Studio, or Xcode. Recently Meson has started to gain popularity among C++ developers. CLion currently doe
Arduino Development With CLion: From Hobby to Professional Project. Part II
In the first post of this series, we built a simple prototype project using an Arduino board. This second stage involves constructing a full-featured device that can display the current temperature and pressure with an atmospheric pressure chart, and can run off a single battery for several weeks. The source code is available on GitHub, and readers can follow along with the text in this post commit-by-commit. Hardware Hardware modding Full circuit assembly Firmware Configuring peripherals Writing code Power consumption MCU configuration changes to optimize power consumption F
Migration Guide for CLion/AppCode Plugins for the 2020.3 Release
This post is intended for CLion plugin authors. It explains what has changed during the 2020.3 release cycle and how you need to adjust your plugin. While CLion doesn’t provide any public plugin API for C/C++-related subsystems, a number of great plugins have been made using the limited API available. We’re very grateful to the authors for their efforts. If you have an idea about building a plugin for CLion or any other IntelliJ-based IDEs, please refer to the documentation, which will be updated shortly to reflect the contents of this post. You’ll find useful advice as well as a few sample pl
Setting up the Clang Compiler in CLion on Windows
Update: MSYS2 now provides the majority of packages built with clang. They use libc++ and lld by default, and you can get the complete toolchain by getting packages from this page. Be aware that when using libraries built with clang it's better not to mix them with libraries built with other toolchains. You can find the list of all libraries here. As a make executable for CLion, you can use clang64/bin/mingw32-make.exe. Don't forget that with default build flags you will need to have libc++.dll and libunwind.dll in your build directory. Otherwise, this approach might be even easier to use than