Building Embedded C Applications on Windows with GCC, CMake and Ninja
Most embedded C developers start writing their code on their microcontroller manufacturer's provided IDE - STM32CubeIDE, MPLAB X, TI Code Composer, NXP MCUXpresso, Segger Embedded Studio, Keil uVision, etc. The debugger support, peripheral setup tools and project structure support make this the right way to go, but at some point you should realise that these are not the best editors on the market and waiting for chip programming times makes your debugging cycle is slow. Although the manufacturer's IDE can be very capable, leveraging the power of Eclipse or NetBeans, there are many features of other editors like Visual Studio Code which make it preferable once your work moves away from the hardware-specific or register level debugging phases. VS Code is so much more customisable with themes, extendable with the extension marketplace and powerful with multi-pane, multi-window editing, as well as being frequently updated that it is not really comparable to what the chip manufacturers' can offer. I've spent many development hours working in VS Code, using as an editor, saving the files then alt-tabbing over to the manufacturer's IDE to build, program, run, debug and step through. I know that this process is perfectly usable but it would be…
Continue reading...