This repository can only be used in combination with Nordic SDK 11.0.0 and the NRF52 Development kit.
Please download the SDK11 and then copy the .vscode folder into the SDK11 folder.
It is used to demonstrate and test debugging of the NRF52 Development Kit. Further information can be read at Embedded Explorer, thus the content here is modified to the necessary requirements.
This example is based on following components:
- NRF52_DK
- Nordic SDK 11 with s132
- VSCode
- GNU Arm Enbedded Toolchain v10.3
- make
- NRF Commandline Tool
This example was tested on:
- NRF52_DK version 2.0.0 and 3.0.0
- NRF Commandline tool v10.21.0
The following examples have been tested and the corresponding debug configuration was created:
Follow this developing guide to install all the tools you need. Beware that the versions might be different to this example!
Make sure to correctly setup your
<InstallFolder>/components/toolchain/gcc/Makefile.posix
, so that it points to your installed GNU Arm Embedded Toolchain
The file launch.json
holds the necessary information for debugging the examples.
The examples are build from the commandline, so you need to open a Terminal for that
- go to
<InstallFolder>/examples/peripheral/blinky/pca10040/blank/armgcc
- type
make
to build the firmware - type
make flash
to program the firmware onto the NRF52_DK board - go to your Run and Debug extension and select Cortex Debug blinky blank
- now you can start the debugging
- go to
<InstallFolder>/examples/peripheral/blinky/pca10040/s132/armgcc
- type
make
to build the firmware - type
make flash_softdevice
to program the Softdevice onto the NRF52_DK board - type
make flash
to program the firmware onto the NRF52_DK board - go to your Run and Debug extension and select Cortex Debug blinky blank
- now you can start the debugging
- go to
<InstallFolder>/examples/ble_peripheral/experimental_ble_app_blinky/pca10040/s132/armgcc
- type
make
to build the firmware - type
make flash_softdevice
to program the Softdevice onto the NRF52_DK board - type
make flash
to program the firmware onto the NRF52_DK board - go to your Run and Debug extension and select Cortex Debug blinky blank
- now you can start the debugging
- now you can also start your NRF Connect App on your Smartphone and connect and play with the board
Have fun ;-)