The nRF52 DK is a versatile development kit for Bluetooth Low Energy, Bluetooth mesh, NFC, ANT, and 2.4 GHz proprietary development on the nRF52832 SoCs.
Objective: Compile, build, and test a basic example using the nRF App.
Steps:Install Visual Studio Code here
Install nRF Connect here
Download nRF5 SDK here
Blinky Led
- Duplicate the Blinky LED:navigate to the Blinky LED example in the downloaded nRF SDK folder.
C:\Users\...\nRF5_SDK_17.1.0_ddde560\examples\ble_peripheral\ble_app_blinky
Duplicate the "ble_app_blinky" folder into a new folder named "test." - Navigate to C:\Users...\nRF5_SDK_17.1.0_ddde560\components\softdevice\s132\hex
and duplicate the file s132_nrf52_7.2.0_softdevice.hex into a folder named "test."
Visual Studio
- Launch Visual Studio and import the "ble_app_blinky" folder.
- Make simple modifications such as changing "Nordic_Blinky" to "Nordic_Blinky_HelloWorld."
Compile and build
- Initiate the terminal and command line:
C:\Users\....\examples\test\ble_app_blinky> ls
C:\Users\....\examples\test\ble_app_blinky> cd .\pca10040
C:\Users\....\examples\test\ble_app_blinky\pca10040> ls
C:\Users\....\examples\test\ble_app_blinky\pca10040> cd .\s132
C:\Users\....\examples\test\ble_app_blinky\pca10040\s132> ls
C:\Users\....\examples\test\ble_app_blinky\pca10040\s132> cd .\armgcc
C:\Users\....\examples\test\ble_app_blinky\pca10040\s132\armgcc> ls
C:\Users\....\examples\test\ble_app_blinky\pca10040\s132\armgcc> cd .\_build
C:\Users\....\examples\test\ble_app_blinky\pca10040\s132\armgcc\_build> ls
Programming the nRF52 SDK
- Start nRF Connect
- Launch nRF Programmer by clicking on "Open."
- Programming the firmware ->Add file->Browse.. Navigate to to examples\test\ble_app_blinky\pca10040\s132\armgcc\_build
and select: nrf52832_xxaa.hex
- Programming softdevice ->Add file->Browse.. Navigate to examples\test
and select: s132_nrf52_7.2.0_softdevice.hex
- Select the nRF52 SDK ->arrow up-> and select the connected nRF52 SDK on the PCB through USB.
- Click "Erase & Write"
Final Test
- Launch the nRF App on your smartphone; you should observe the name "Nordic_Blinky_HelloWorld." Connect to it.
- Perform tests, such as pressing button 1 on the nRF52 SDK; you should observe the corresponding action in your app.