Site Search

NXP Microcontroller Visual Studio Code Development Guide

We are currently serializing content aimed at those developing NXP microcontrollers with VS Code for the first time.

In addition to the traditional Eclipse-based IDE "MCUXpresso IDE" provided by NXP, support for the lightweight and highly customizable "Visual Studio Code" has been enhanced, allowing NXP users to experience the benefits of Visual Studio Code.

All microcontrollers provided by NXP can be developed with VS Code. (See here for the lineup of major products.)

 

<Advantages of VS Code>
・Start-up speed
- Powerful code completion (IntelliSense)
・Easy Git integration
・You can use the extension functions you are familiar with
・ZephryRTOS/Matter application development is possible

1 - How to install MCUXpresso for Visual Studio Code 

This article will show you how to install MCUXpresso for Visual Studio Code (hereinafter referred to as MCUXpresso for VS Code) in a Windows 11 environment.

The installation consists of the following three steps:

  1.  Install Visual Studio Code
    (Optional) Localize Visual Studio Code to Japanese
  2. Install “MCUXpresso for VS Code”
  3. Install the necessary tools with MCUXpresso Installer

2 - How to create a sample project with MCUXpresso for Visual Studio Code 

This article explains the following using MCUXpresso for Visual Studio Code:

  Importing MCUXpresso SDK
  Importing the Hello World application example project from the MCUXpresso SDK

We will proceed with the explanation assuming that you have already downloaded and installed MCUXpresso for Visual Studio Code.

3 - Debugging Hello World using FRDM-MCXN947 

In this article, we will explain the configuration of the Hello World Sample Project, the Project Settings, and how to actually debug it.

4 - How to migrate your MCUXpresso IDE project to VS Code 

This time, we will introduce how to import and use an existing project created in the MCUXpresso Integrated Development Environment (IDE) (hereinafter referred to as the "IDE environment") into MCUXpresso for Visual Studio Code (hereinafter referred to as the "VS Code environment").
5- Try changing the memory allocation of the project with FRDM-MCXN947 (changing the linker settings) In this article, we will change the memory layout of the Hello World project used in our previous article[NXP Microcontroller Development with VS Code 3] Debugging Hello World with FRDM-MCXN947. As mentioned in the summary of the previous article, the original Hello World project included with the SDK is designed to place the program in the Flash area, so the Flash area is rewritten each time you run a debug.

6 - Customizing the Example Using the Configuration Tool (GPIO) 

This article explains how to add GPIO functionality to the FRDM-MCXN947 Hello World project, which was confirmed to work in [NXP Microcontroller Development with VS Code 2/3], using MCUXpresso Config Tools and VS Code Manage Components.

We will implement a function to check whether the LED is lit and change the LED lighting when the switch is pressed.

7 - Customizing the Example with the Peripheral Configuration Tool (GPIO & Ctimer PWM)

In this article  [NXP Microcontroller Development with VS Code 6] Customizing Samples with the Configuration Tool (GPIO)  This article explains how to achieve LED dimming functionality by adding the PWM function of Ctimer to the LED lighting function that was confirmed to work in the previous section.

You can learn how to enable peripherals by configuring the Clock Configuration Tool and Peripheral Configuration Tool.

Information about MCUXpresso for Visual Studio Code

Inquiry / Quotation

If you have any questions about this product or would like a quote, please contact us using the form below.

NXP Semiconductors Manufacturer Information Top

NXP Semiconductors Manufacturer Information If you would like to return to the top page, please click below.