CMake is a tool that converts project definitions that are compiler-independent into project definitions that are compiler-specific.

CMakeLists.txt files from NXP contain such separate project definitions. CMake translates them to makefiles that the GNU Arm Embedded Toolchain can process.

3. Debugger Tools

Segger J-Link: (for J-Link hardware debugger only)

This software package contains the J-Link GDB server, which connects to VSCode on one side, and to the J-Link JTAG hardware on the other side.

OpenOCD: (for generic hardware debugger)

OpenOCD is a free and open-source debugger that works with a wide range of JTAG hardware. This is most likely the corresponding software for customers utilizing a JTAG adapter other than the J-Link. A GDB server is included in the package, which connects to VSCode on one side and the J-Link JTAG hardware on the other.

Chocolatey (The Package Manager For Windows)

The Windows versions of required software will be installed using Chocolately

  • Launch Power shell as an administrator, then run the following command:

> Get-ExecutionPolicy

If it returns Restricted, then run the following command:

> Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString(‘https://community.chocolatey.org/install.ps1′))

If you don’t see any errors, you are ready to use Chocolatey! Type choco or choco -? now, or see following documents for more info:

4. Install VSCode

Ubuntu

  • Please follow this link to install Visual Studio Code Application.
  • For more options, please refer to the Visual Studio Code setup page.
  • You can also Download Visual Studio Code and install.

Windows

> choco install vscode

5. Installing Visual Studio Code Plugins

The easiest way is to install them from the command prompt inside the IDE:

code –install-extension ms-vscode.cpptools

code –install-extension marus25.cortex-debug

code –install-extension twxs.cmake

code –install-extension dan-c-underwood.arm

code –install-extension zixuanwang.linkerscript

Or we can use in the IDE the menu View > Extensions.

  1. Open VSCode
  2. Select View → Extensions
    This will show the Extension sidebar
  3. In the search box above the Extension sidebar, type the Code name from the above table (without the angle brackets) or another reasonable search term
  4. Click on the little green Install button which appears next to the found plugin.

Below is our installed extensions (menu File > Preferences > Extensions):

6. Install Build Tools

Ubuntu

GNU Arm Embedded Toolchain

  • Please follow this link to install GNU ARM Embedded Toolchain
  • OR, we can install using apt

$ sudo apt update

$ sudo apt install gcc-arm-none-eabi binutils-arm-none-eabi

Make and CMake

$ sudo apt update

$ sudo apt install make cmake

Windows

GNU Arm Embedded Toolchain

> choco install gcc-arm-embedded

Make

> choco install make

CMake

> choco install cmake

7. Install Debugging Tools

OpenOCD

Ubuntu

$ sudo apt update

$ sudo apt install openocd

Windows

> choco install openocd

Please refer following documents to know more about how to run OpenOCD:

author avatar
Aravind S S