Bluetooth Low Energy service for controlling a RGB LED using PWM, and getting notifications on button presses for nRF51 and nRF52 series of Nordic Semiconductor SoCs.
- Nordic Semiconductor nRF5 SDK v11.0.0
- Nordic Semiconductor nRF5x Command Line Tools
Windows
Linux
- Makefile for gcc will be added later.
- nRF5x development with gcc and eclipse.
- Run bash script
get_sdk.sh
to download and unzip Nordic Semicunductors SDK v11.0.0 for nRF5x series. On windows run it from git-bash. - Open Keil project in
pca100xx\s13x\arm5_no_packs\
and hit Build (F7). Choosepca10031
if you are using Nordics nRF51 usb dongle andpca10041
if you have Nordics nRF52 DK.
- Flash the SoftDevice (bluetooth stack) found in the SDK folder. Replace x depending on if you are using nRF51 s130 or nRF52 s132.
cd nRF5_SDK_v11.0.0\components\softdevice\s13x\hex
nrfjprog -f "nrf5x"-e
nrfjprog -f "nrf5x" --program s13x_nrf5x_2.0.0_softdevice.hex
- Flash application by hitting Download (F8) in Keil. Or by using nrfjprog as bellow.
cd nrf5_ble_rgb_btn\pca100xx\s13x\arm5_no_packs\_build
nrfjprog -f "nrf5x" --program ble_rgb_btn_s130.hex