# Compiling Applications with nRF Connect Extension for VS Code

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

### **Adding an existing application to nRF Connect for VS Code**

Once you are all set with the [<mark style="color:red;">nRF Connect Visual Studio Code Extension Pack</mark>](https://marketplace.visualstudio.com/items?itemName=nordic-semiconductor.nrf-connect-extension-pack) installation, start the extension in the VS Code.

{% hint style="success" %}
Installing nRF Connect Visual Studio Code Extension Pack will also install all the required dependencies.
{% endhint %}

First, Open Existing Application:

<figure><img src="/files/jN3ErH5OdcD03TULipgU" alt=""><figcaption><p>Open Existing Application</p></figcaption></figure>

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_blitz/led_blink`) and click **open**.

<figure><img src="/files/KQYFjNX3XJ46x5nkWuAo" alt=""><figcaption><p>Browse the sampe application</p></figcaption></figure>

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&#x20;

* (2) check the **All boards**
* (3) then search for `conexio_blitz_cpuapp` .
* (4) click **Build Configuration** to start the Zephyr application build process.

![Add Build Configuration](/files/z8GAZ5SJjgBtcxST8T9g)

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

![Application Build In Progress](/files/IcrNIGMHFBP9eeEyl2O5)

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

![Application Compiled Successfully](/files/HPy37vogFZd1a4VrMchG)

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.

![Uploading the Firmware to the Device](/files/3Vmd1byRLCwpTpoFMrTW)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.conexiotech.com/getting-started-with-conexio-blitz/conexio-blitz-overview/programming-and-debugging/building-and-programming-an-application/compiling-applications-with-nrf-connect-extension-for-vs-code.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
