Getting started

Before getting started, make sure you have a proper nRF Connect SDK development environment. Follow the official Getting started guide.

There are two options for setting up the project, depending on your preferred development environment:

Initialization

This section represents alternative approaches for initializing the workspace.

  1. To install the nRF Connect SDK and its toolchain using nRF Connect for VS Code, follow extension documentation or Installing nRF Connect SDK and VS Code exercise on Nordic Developer Academy.

  2. Open the nRF Connect extension in Visual Studio Code by clicking its icon in the Activity Bar.

  3. Click Create New Application.

  4. Select the Browse nRF Connect SDK add-on Index option.

  5. Search for the Serial Modem application and create the project.

Building and running

Before building and running the application, you need to connect the development kit to your PC using a USB cable and power on the development kit. Complete the following steps for building and running:

  1. Complete the steps in the How to build an application section in the extension documentation to build the application.

    You can also specify the additional configuration variables (Kconfig, DTC overlays, and extra Kconfig options) while setting up a build configuration during building the application. See Providing CMake options for more information on setting the additional configuration variables.

  2. Open the nRF Connect extension in Visual Studio Code by clicking its icon in the Activity Bar.

  3. In the extension’s Actions View, click on Flash.

The application is now built and flashed to the device. You can open a serial terminal to use the application. The default baud rate is 115200.