1.. zephyr:board:: bl652_dvk
2
3Overview
4********
5
6The BL652 Development Kit hardware provides
7support for the Ezurio BL652 module powered by a Nordic Semiconductor nRF52832 ARM Cortex-M4F CPU.
8
9This development kit has the following features:
10
11* :abbr:`ADC (Analog to Digital Converter)`
12* CLOCK
13* FLASH
14* :abbr:`GPIO (General Purpose Input Output)`
15* :abbr:`I2C (Inter-Integrated Circuit)`
16* :abbr:`MPU (Memory Protection Unit)`
17* :abbr:`NVIC (Nested Vectored Interrupt Controller)`
18* :abbr:`PWM (Pulse Width Modulation)`
19* RADIO (Bluetooth Low Energy)
20* :abbr:`RTC (nRF RTC System Clock)`
21* Segger RTT (RTT Console)
22* :abbr:`SPI (Serial Peripheral Interface)`
23* :abbr:`UART (Universal asynchronous receiver-transmitter)`
24* :abbr:`WDT (Watchdog Timer)`
25
26Available BL652 DVK part numbers:
27
28* DVK-BL652-SA
29* DVK-BL652-SC
30
31.. figure:: img/BL652-SA_DVK_BoxContents.jpg
32     :align: center
33     :alt: BL652-SA DVK Box Contents
34
35     BL652-SA DVK Box Contents
36
37More information about the board can be found at the
38`BL652 Module Website`_.
39
40Hardware
41********
42
43Supported Features
44==================
45
46The BL652 DVK board configuration supports the following
47hardware features:
48
49+-----------+------------+----------------------+
50| Interface | Controller | Driver/Component     |
51+===========+============+======================+
52| ADC       | on-chip    | adc                  |
53+-----------+------------+----------------------+
54| CLOCK     | on-chip    | clock_control        |
55+-----------+------------+----------------------+
56| FLASH     | on-chip    | flash                |
57+-----------+------------+----------------------+
58| GPIO      | on-chip    | gpio                 |
59+-----------+------------+----------------------+
60| I2C(M)    | on-chip    | i2c                  |
61+-----------+------------+----------------------+
62| MPU       | on-chip    | arch/arm             |
63+-----------+------------+----------------------+
64| NVIC      | on-chip    | arch/arm             |
65+-----------+------------+----------------------+
66| PWM       | on-chip    | pwm                  |
67+-----------+------------+----------------------+
68| RADIO     | on-chip    | Bluetooth            |
69+-----------+------------+----------------------+
70| RTC       | on-chip    | system clock         |
71+-----------+------------+----------------------+
72| RTT       | Segger     | console              |
73+-----------+------------+----------------------+
74| SPI(M/S)  | on-chip    | spi                  |
75+-----------+------------+----------------------+
76| UART      | on-chip    | serial               |
77+-----------+------------+----------------------+
78| WDT       | on-chip    | watchdog             |
79+-----------+------------+----------------------+
80
81Other hardware features have not been enabled yet for this board.
82See `BL652 Module Website`_.
83
84Connections and IOs
85===================
86
87LED
88---
89
90* LED1 (blue) = P0.17
91* LED2 (blue) = P0.19
92
93Push buttons
94------------
95
96* BUTTON1 = SW1 = P0.11
97* BUTTON2 = SW2 = P0.15
98* Reset = SW3 = boot/reset
99
100External Connectors
101-------------------
102
103Arduino Headers
104---------------
105
106J33/J23 Power
107
108+-------+--------------+-------------------------+
109| PIN # | Signal Name  | NRF52832 Functions      |
110+=======+==============+=========================+
111| 1     | NC           | N/A                     |
112+-------+--------------+-------------------------+
113| 2     | IOREF (3v3)  | N/A                     |
114+-------+--------------+-------------------------+
115| 3     | RESET        | P0.21 / RESET           |
116+-------+--------------+-------------------------+
117| 4     | 3v3          | N/A                     |
118+-------+--------------+-------------------------+
119| 5     | 5V           | N/A                     |
120+-------+--------------+-------------------------+
121| 6     | GND          | N/A                     |
122+-------+--------------+-------------------------+
123| 7     | GND          | N/A                     |
124+-------+--------------+-------------------------+
125| 8     | VIN (12V)    | N/A                     |
126+-------+--------------+-------------------------+
127
128J31/J16 Analog in
129
130+-------+--------------+-------------------------+
131| PIN # | Signal Name  | NRF52832 Functions      |
132+=======+==============+=========================+
133| 1     | A0           | P0.03 / AIN1            |
134+-------+--------------+-------------------------+
135| 2     | A1           | P0.04 / AIN2            |
136+-------+--------------+-------------------------+
137| 3     | A2           | P0.28 / AIN4            |
138+-------+--------------+-------------------------+
139| 4     | A3           | P0.29 / AIN5            |
140+-------+--------------+-------------------------+
141| 5     | A4           | P0.30 / AIN6            |
142+-------+--------------+-------------------------+
143| 6     | A5           | P0.31 / AIN7            |
144+-------+--------------+-------------------------+
145
146J30/J15 Digital I/O
147
148+-------+--------------+-------------------------+
149| PIN # | Signal Name  | NRF52832 Functions      |
150+=======+==============+=========================+
151| 1     | D0 (RX)      | P0.11                   |
152+-------+--------------+-------------------------+
153| 2     | D1 (TX)      | P0.12                   |
154+-------+--------------+-------------------------+
155| 3     | D2           | P0.13                   |
156+-------+--------------+-------------------------+
157| 4     | D3           | P0.14 / TRACEDATA[3]    |
158+-------+--------------+-------------------------+
159| 5     | D4           | P0.15 / TRACEDATA[2]    |
160+-------+--------------+-------------------------+
161| 6     | D5           | P0.16 / TRACEDATA[1]    |
162+-------+--------------+-------------------------+
163| 7     | D6           | P0.17                   |
164+-------+--------------+-------------------------+
165| 8     | D7           | P0.18 / TRACEDATA[3]  / |
166|       |              | SWO                     |
167+-------+--------------+-------------------------+
168
169J32/J22 Digital I/O
170
171+-------+--------------+-------------------------+
172| PIN # | Signal Name  | NRF52832 Functions      |
173+=======+==============+=========================+
174| 1     | D8           | P0.19                   |
175+-------+--------------+-------------------------+
176| 2     | D9           | P0.20 / TRACECLK        |
177+-------+--------------+-------------------------+
178| 3     | D10 (SS)     | P0.22                   |
179+-------+--------------+-------------------------+
180| 4     | D11 (MOSI)   | P0.23                   |
181+-------+--------------+-------------------------+
182| 5     | D12 (MISO)   | P0.24                   |
183+-------+--------------+-------------------------+
184| 6     | D13 (SCK)    | P0.25                   |
185+-------+--------------+-------------------------+
186| 7     | GND          | N/A                     |
187+-------+--------------+-------------------------+
188| 8     | AREF         | P0.02 / AIN0            |
189+-------+--------------+-------------------------+
190| 9     | SDA          | P0.26                   |
191+-------+--------------+-------------------------+
192| 10    | SCL          | P0.27                   |
193+-------+--------------+-------------------------+
194
195
196Programming and Debugging
197*************************
198
199Flashing
200========
201
202Follow the instructions in the :ref:`nordic_segger` page to install
203and configure all the necessary software. Further information can be
204found in :ref:`nordic_segger_flashing`. Then build and flash
205applications as usual (see :ref:`build_an_application` and
206:ref:`application_run` for more details).
207
208Here is an example for the :zephyr:code-sample:`hello_world` application.
209
210First, run your favorite terminal program to listen for output.
211
212NOTE: On the BL652 DVK, the FTDI USB should be used to access the UART console.
213
214.. code-block:: console
215
216   $ minicom -D <tty_device> -b 115200
217
218Replace :code:`<tty_device>` with the port where the BL652 DVK
219can be found. For example, under Linux, :code:`/dev/ttyUSB0`.
220
221Then build and flash the application in the usual way.
222
223.. zephyr-app-commands::
224   :zephyr-app: samples/hello_world
225   :board: bl652_dvk
226   :goals: build flash
227
228Debugging
229=========
230
231Refer to the :ref:`nordic_segger` page to learn about debugging Nordic based boards with a
232Segger IC.
233
234Testing Bluetooth on the BL652 DVK
235**********************************
236Many of the Bluetooth examples will work on the BL652 DVK.
237Try them out:
238
239* :zephyr:code-sample:`ble_peripheral`
240* :zephyr:code-sample:`bluetooth_eddystone`
241* :zephyr:code-sample:`bluetooth_ibeacon`
242
243Testing the LEDs and buttons in the BL652 DVK
244*********************************************
245
246There are 2 samples that allow you to test that the buttons (switches) and LEDs on
247the board are working properly with Zephyr:
248
249* :zephyr:code-sample:`blinky`
250* :zephyr:code-sample:`button`
251
252You can build and flash the examples to make sure Zephyr is running correctly on
253your board. The button and LED definitions can be found in
254:zephyr_file:`boards/ezurio/bl652_dvk/bl652_dvk.dts`.
255
256References
257**********
258
259.. target-notes::
260
261.. _BL652 Module Website: https://ezurio.com/wireless-modules/bluetooth-modules/bluetooth-5-modules/bl652-series-bluetooth-v5-nfc
262