Skip to content
Visual Studio Code configuration for ble_app_blinky example from Nordic SDK 15.
C Makefile
Branch: master
Clone or download
Latest commit b6921ff Aug 4, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
ble_app_blinky Add sdk_config tasks Aug 3, 2018
.gitignore Add Config files for Visual Studio Code Jul 30, 2018 Update Aug 3, 2018


This repo contains Visual Studio Code configuration for ble_app_blinky example from Nordic SDK 15. It supports:

  • IntelliSense
  • building the app (using gcc compiler)
  • flashing the app and the softdevice (using nrfjprog)
  • source-level debugging (using gdb/mi and JLink gdb server)
  • SDK configuraion (using CMSIS Configuration Wisard included with the Nordic SDK)

The repo contains configurations for PCA10056(nRF52840) and PCA10040(nRF52832) dev boards. Only Windows is currently supported.

Tools required:


  • Clone this repo
  • edit the ble_app_blinky\vscode.bat and adjust all paths to match your configuration
  • set PCAXXXXX_SN variable to serial numbers of your dev boards
  • edit gcc compiler settings in nRF5_SDK_15.0.0_a53641a\components\toolchain\gcc\

Running the Visual Studio Code

Run the ble_app_blinky\vscode.bat. It opens VcCode workspace containing three folders - the root folder of the app (containing main.c) and two hw-specific folders PCA10040 and PCA10056.

Open the main.c and verify that IntelliSense has found all header files. Go though the file and verify that you can follow definitios etc. Note that there are two IntelliSense configurations, one per each hw variant.

There are five tasks configured in each hw-specific folder:

  • build
  • clean
  • flash
  • flash_softdevice
  • sdk-config

Connect your dev board, run tasks and monitor the console window to ensure they work.

There is a separate debugger configuration per each hw variant. To start the debugger, first ensure that your board flashed ok and the blinky app works. Switch to VcCode Debugger window, select correct configuration and start debugger. The debugger should connect to the board, reset it, and break at main(). Ensure that IntelliSense configuration matches the HW you debug.

You can’t perform that action at this time.