You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project shows how custom services and characteristics can be defined and manipulated on the nRF51822.
5
+
6
+
A sample 'UART' type service with two characteristics as follows:
7
+
8
+
- The first characteristic acts as a **TXD** line, with **indicate** enabled, which allows us to know definitively if the transmitted data was received or not.
9
+
10
+
- The second characteristic acts as the **RXD** line and has **write** enabled so that the connected GATT client device (the phone/tablet/etc.) can send data back to the GATT server (the nRF51822).
11
+
12
+
Target SDK/SD
13
+
=============
14
+
15
+
-**SDK**: v5.1.0
16
+
-**SoftDevice**: v6.0.0
5
17
6
18
Building this Project
7
19
=====================
8
20
9
21
To build a clean copy of your project in release mode, enter the same folder as your Makefile on the command-line and enter the following command:
10
22
11
-
- make clean release
23
+
```
24
+
make clean release
25
+
```
12
26
13
27
Other relevant make targets are:
14
28
15
-
- make
16
-
- make debug
17
-
- make flash-softdevice (flashes Softdevice via JLink)
18
-
- make flash (flashes output hex file via JLink)
19
-
- make erase-all (erases flash)
20
-
- make startdebug - (starts GDBServer & GDB via JLink)
21
-
- make stopdebug - (stops GDBServer)
29
+
-`make` is an alias for `make debug` below
30
+
-`make debug` builds a .hex file that includes debug data (larger, unoptimized binaries useful to debug via GDB Server)
31
+
-`make release` builds an optimized release version of the firmware
32
+
-`make clean` removes and previous build artifacts
33
+
-`make flash` flashes the nRF51 via JLink and nrfjprog.exe (currently Windows only)
0 commit comments