VS Code: MCUXpresso Extension

In essence, VS Code is only a text editor, although with very nice features. An editor which can be enhanced with so called extensions. With the right set of extensions, VS Code can be specialized for web development, or even LaTeX documenting. Or as in the case of this article series, for embedded development.

Installed VS Code Extensions

‘Full’ IDEs as Microsoft Visual Studio (the non-Code one!) or the Eclipse based MCUXpresso IDE do come with all the necessary build tools and debugger.

VS Code is different, as it comes as editor only in the first place. Which is good because it gives you full freedom. If you are familiar with building a DIY IDE, then this is just perfect. You can follow Visual Studio Code for C/C++ with ARM Cortex-M: Part 1 – Installation) to install the extensions and tools.

MCUXpresso for Visual Studio Code

After having installed VS Code and configured an essential part :-), time to install some extensions.

I start with the installation of the NXP extension for Visual Studio Code. It comes with many of the essential extensions needed for embedded development. Plus it makes it easy to get and install the necessary tools like git, gcc, gdb and cmake. More about this in a next article.

NXP has released a VS Code extension and installation package, making it easier to use VS Code for embedded development.

💡 I’m not a lawyer, and this is not a legal advice. But you should carefully read and check the fine print and license agreement of VS Code and any extensions you are going to use and install. You usually find the link to the license and terms of usage on the extension page. If you prefer a more permissible license, check out VSCodium (MIT) or the Eclipse Theia project.

Installing MCUXpresso Extension

Start VS Code. Then click on the Extensions icon on the left side-bar:

Extensions Icon

Then search for the NXP extension and click on ‘Install’:

This installs the extension plus if necessary all the VS Code extensions it depends on.

You can see and manage the installed extensions in the Extensions area:

  • C/C++: provides syntax coloring for C/C++ and editing (IntelliSense) support, plus basic debugging infrastructure.
  • CMake: provides CMake file syntax coloring in the editor.
  • CMake Tools: Extension supporting a CMake based flow to configure projects for CMake.
  • Embedded Tools: Implements a register viewer for CMSIS-SVD files.
  • Serial Monitor: Extension implementing support for a serial terminal or serial monitor, both over a serial or TCP port

Note that the above is for the editor, and does not include the external tools itself (gcc, gdb, cmake, …).

What MCUXpresso Extension has added to the UI is a ‘X’ in the sidebar (which I will cover in a next article):

With this, we have the essential VS Code extensions installed.

In a next article I show how to install the needed build tools (gcc, gdb, cmake, …).

Happy extending 🙂

Links

2 thoughts on “VS Code: MCUXpresso Extension

  1. I love that I always learn something new when reading your posts! I wasn’t aware of VSCodium or Theia. (but of course they exist, just like Chromium vs. Google Chrome) The idealist in me wants to switch to VSCodium, but it’s a shame that many of the extensions that make VS Code useful are not available out-of-the-box in codium (yet?). They says it’s possible to run VSCode extensions in codium with some manual steps, but I’ve got a 9-5 job to do… I would be interested to see a post on using codium in the future 😉

    Like

    • Hi Paul,
      thanks, and kind of same for me: always when I want do my research to write about a topic, I learn something new. Plus I learn a lot from the comments made too! As for VSCodium: yes, I make a post about it for sure. And I feel exactly the same about it too: the idealist in my wants to do too many things, and at the end there is only so much time.

      Like

Leave a reply to Paul Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.