Compiling Applications with nRF Connect Extension for VS Code

To make zephyr-based application development a breeze, the Stratus board is also compatible with the newly released nRF Connect SDK extension for the VS Code.

Adding an existing application to nRF Connect for VS Code

Once you are all set with the nRF Connect Visual Studio Code Extension Pack installation, start the extension in the VS Code.

Installing nRF Connect Visual Studio Code Extension Pack will also install all the required dependencies.

First, Open Existing Application:

This will open the file browser on your machine. Navigate to the location where the led_blink sample application resides (ncs/v2.6.0/conexio-firmware-sdk/samples/conexio_stratus/led_blink) and click open.

On the left pane, under APPLICATIONS, you should now see the ported application.

Compiling an application using nRF Connect Extension

Prior to compiling our sample application, we need to first generate the device build configuration for our project, by clicking on Add Build Configuration (1) option as shown below.

This opens a new tab, asking the user to select the board for which the build configurations will be generated. In our case, we will

  • (2) check the All boards

  • (3) then search for conexio_stratus_pro_ns for the non-secure domain.

  • (4) click Build Configuration to start the Zephyr application build process.

Now, you should see the build process kicking in the background and generating the required files and binaries for the led_blink sample application.

Once the project is compiled successfully, in the project navigation panel, you will see all the generated files.

Well done! You have successfully managed to compile the sample application within the nRF Connect extension.

Flashing an application

To upload the Conexio Stratus Pro firmware, we now have to:

  • Open the terminal within the nRF Connect extension and invoke the newtmgr -c serial image upload build/zephyr/app_update.bin as shown, making sure the device is in DFU mode.

Last updated