boards/nordic/nrf52dk/doc/index.html · boards/nordic/nrf52dk/doc/index.rst 공식 원문 ↗

Zephyr 3.7.0 · Boards · Nordic · nRF52 DK

nRF52 DK

nRF52832 BLE 개발과 외부 target debug, Arduino shield 연결, 비용 절감형 IC 제한 재현을 지원하는 개발 키트입니다.

Official pathboards/nordic/nrf52dk/doc/index.html
Source fileboards/nordic/nrf52dk/doc/index.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

본문 기준: Zephyr 3.7.0 LTS3 · 이후 유지보수 패치는 별도입니다.

Part 1

요약·해설

보드의 J-Link·Debug IN/OUT·current measurement·Auxiliary·Arduino header 핀 85개 행을 원문대로 제공하고 nRF52805와 nRF52810 제한 대상을 함께 설명합니다.

Board

PCA10040

CPU

nRF52832 · Cortex-M4F

Emulation

nRF52805 · nRF52810

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 5E233BF83D9E2E4F5F8FFF467FBE6B2556829E84EA5E3ED2ED54B9EBADC846BF
.. _nrf52dk_nrf52832:

nRF52 DK
########

Overview
********

The nRF52 Development Kit (PCA10040) hardware provides
support for the Nordic Semiconductor nRF52832 ARM Cortex-M4F CPU and
the following devices:

* :abbr:`ADC (Analog to Digital Converter)`
* CLOCK
* FLASH
* :abbr:`GPIO (General Purpose Input Output)`
* :abbr:`I2C (Inter-Integrated Circuit)`
* :abbr:`MPU (Memory Protection Unit)`
* :abbr:`NVIC (Nested Vectored Interrupt Controller)`
* :abbr:`PWM (Pulse Width Modulation)`
* RADIO (Bluetooth Low Energy)
* :abbr:`RTC (nRF RTC System Clock)`
* Segger RTT (RTT Console)
* :abbr:`SPI (Serial Peripheral Interface)`
* :abbr:`UART (Universal asynchronous receiver-transmitter)`
* :abbr:`WDT (Watchdog Timer)`

.. figure:: ../../../../../../../boards/nordic/nrf52dk/doc/img/nrf52dk_nrf52832.jpg
     :align: center
     :alt: nRF52 DK

     nRF52 DK (Credit: Nordic Semiconductor)

More information about the board can be found at the
`nRF52 DK website`_. `nRF52832 Product Specification`_
contains the processor's information and the datasheet.


Hardware
********

nRF52 DK has two external oscillators. The frequency of
the slow clock is 32.768 kHz. The frequency of the main clock
is 32 MHz.

Supported Features
==================

The ``nrf52dk/nrf52832`` board configuration supports the following
hardware features:

+-----------+------------+----------------------+
| Interface | Controller | Driver/Component     |
+===========+============+======================+
| ADC       | on-chip    | adc                  |
+-----------+------------+----------------------+
| CLOCK     | on-chip    | clock_control        |
+-----------+------------+----------------------+
| FLASH     | on-chip    | flash                |
+-----------+------------+----------------------+
| GPIO      | on-chip    | gpio                 |
+-----------+------------+----------------------+
| I2C(M)    | on-chip    | i2c                  |
+-----------+------------+----------------------+
| MPU       | on-chip    | arch/arm             |
+-----------+------------+----------------------+
| NVIC      | on-chip    | arch/arm             |
+-----------+------------+----------------------+
| PWM       | on-chip    | pwm                  |
+-----------+------------+----------------------+
| RADIO     | on-chip    | Bluetooth            |
+-----------+------------+----------------------+
| RTC       | on-chip    | system clock         |
+-----------+------------+----------------------+
| RTT       | Segger     | console              |
+-----------+------------+----------------------+
| SPI(M/S)  | on-chip    | spi                  |
+-----------+------------+----------------------+
| UART      | on-chip    | serial               |
+-----------+------------+----------------------+
| WDT       | on-chip    | watchdog             |
+-----------+------------+----------------------+

Other hardware features have not been enabled yet for this board.
See `nRF52 DK website`_ and `nRF52832 Product Specification`_
for a complete list of nRF52 Development Kit board hardware features.

Connections and IOs
===================

LED
---

* LED1 (green) = P0.17
* LED2 (green) = P0.18
* LED3 (green) = P0.19
* LED4 (green) = P0.20
* LD5 (red/green) = OB LED 1/2

Push buttons
------------

* BUTTON1 = SW1 = P0.13
* BUTTON2 = SW2 = P0.14
* BUTTON3 = SW3 = P0.15
* BUTTON4 = SW4 = P0.16
* BOOT = SW5 = boot/reset

External Connectors
-------------------

J-Link Prog Connector

+-------+--------------+
| PIN # | Signal Name  |
+=======+==============+
| 1     | VDD          |
+-------+--------------+
| 2     | IMCU_TMSS    |
+-------+--------------+
| 3     | GND          |
+-------+--------------+
| 4     | IMCU_TCKS    |
+-------+--------------+
| 5     | V5V          |
+-------+--------------+
| 6     | IMCU_TDOS    |
+-------+--------------+
| 7     | Cut off      |
+-------+--------------+
| 8     | IMCU_TDIS    |
+-------+--------------+
| 9     | Cut off      |
+-------+--------------+
| 10    | IMCU_RESET   |
+-------+--------------+

Debug IN

+-------+--------------+-------------------------+
| PIN # | Signal Name  | NRF52832 Functions      |
+=======+==============+=========================+
| 1     | VDD          | N/A                     |
+-------+--------------+-------------------------+
| 2     | SWDIO        | SWDIO                   |
+-------+--------------+-------------------------+
| 3     | GND          | N/A                     |
+-------+--------------+-------------------------+
| 4     | SWDCLK       | SWDCLK                  |
+-------+--------------+-------------------------+
| 5     | GND          | N/A                     |
+-------+--------------+-------------------------+
| 6     | P0.18        | P0.18 / TRACEDATA[0] /  |
|       |              | SWO                     |
+-------+--------------+-------------------------+
| 7     | Cut off      | N/A                     |
+-------+--------------+-------------------------+
| 8     | Cut off      | N/A                     |
+-------+--------------+-------------------------+
| 9     | GND          | N/A                     |
+-------+--------------+-------------------------+
| 10    | P0.21        | P0.21 / RESET           |
+-------+--------------+-------------------------+

Debug OUT

+-------+----------------+
| PIN # | Signal Name    |
+=======+================+
| 1     | EXT_VTG        |
+-------+----------------+
| 2     | EXT_SWDIO      |
+-------+----------------+
| 3     | GND            |
+-------+----------------+
| 4     | EXT_SWDCLK     |
+-------+----------------+
| 5     | GND            |
+-------+----------------+
| 6     | EXT_SWO        |
|       |                |
+-------+----------------+
| 7     | Cut off        |
+-------+----------------+
| 8     | Cut off        |
+-------+----------------+
| 9     | EXT_GND_DETECT |
+-------+----------------+
| 10    | EXT_RESET      |
+-------+----------------+

Shield Debug and Current measurement

+-------+----------------+
| PIN # | Signal Name    |
+=======+================+
| 1     | VDD_nRF        |
+-------+----------------+
| 2     | VDD            |
+-------+----------------+
| 3     | SH_VTG         |
+-------+----------------+
| 4     | SH_SWDIO       |
+-------+----------------+
| 5     | SH_SWDCLK      |
+-------+----------------+
| 6     | SH_SWO         |
+-------+----------------+
| 7     | SH_RESET       |
+-------+----------------+
| 8     | SH_GND_DETECT  |
+-------+----------------+

Auxiliary

+-------+--------------+-------------------------+
| PIN # | Signal Name  | NRF52832 Functions      |
+=======+==============+=========================+
| 1     | P0.00        | P0.00 / XL1             |
+-------+--------------+-------------------------+
| 2     | P0.01        | P0.01 / XL2             |
+-------+--------------+-------------------------+
| 3     | P0.21        | P0.21 / RESET           |
+-------+--------------+-------------------------+
| 4     | P0.05_C      | P0.05 / AIN3            |
+-------+--------------+-------------------------+
| 5     | P0.06_C      | P0.06                   |
+-------+--------------+-------------------------+
| 6     | P0.07_C      | P0.07                   |
+-------+--------------+-------------------------+
| 7     | P0.08_C      | P0.08                   |
+-------+--------------+-------------------------+
| 8     | P0.09        | P0.09 / NFC1            |
+-------+--------------+-------------------------+
| 9     | P0.10        | P0.10 / NFC2            |
+-------+--------------+-------------------------+

Arduino Headers
---------------

P1/P7 Power

+-------+--------------+-------------------------+
| PIN # | Signal Name  | NRF52832 Functions      |
+=======+==============+=========================+
| 1     | VDD          | N/A                     |
+-------+--------------+-------------------------+
| 2     | VDD          | N/A                     |
+-------+--------------+-------------------------+
| 3     | RESET        | P0.21 / RESET           |
+-------+--------------+-------------------------+
| 4     | VDD          | N/A                     |
+-------+--------------+-------------------------+
| 5     | V5V          | N/A                     |
+-------+--------------+-------------------------+
| 6     | GND          | N/A                     |
+-------+--------------+-------------------------+
| 7     | GND          | N/A                     |
+-------+--------------+-------------------------+
| 8     | VIN          | N/A                     |
+-------+--------------+-------------------------+

P2/P8 Analog in

+-------+--------------+-------------------------+
| PIN # | Signal Name  | NRF52832 Functions      |
+=======+==============+=========================+
| 1     | A0           | P0.03 / AIN1            |
+-------+--------------+-------------------------+
| 2     | A1           | P0.04 / AIN2            |
+-------+--------------+-------------------------+
| 3     | A2           | P0.28 / AIN4            |
+-------+--------------+-------------------------+
| 4     | A3           | P0.29 / AIN5            |
+-------+--------------+-------------------------+
| 5     | A4           | P0.30 / AIN6            |
+-------+--------------+-------------------------+
| 6     | A5           | P0.31 / AIN7            |
+-------+--------------+-------------------------+

P3/P9 Digital I/O

+-------+--------------+-------------------------+
| PIN # | Signal Name  | NRF52832 Functions      |
+=======+==============+=========================+
| 1     | D0 (RX)      | P0.11                   |
+-------+--------------+-------------------------+
| 2     | D1 (TX)      | P0.12                   |
+-------+--------------+-------------------------+
| 3     | D2           | P0.13                   |
+-------+--------------+-------------------------+
| 4     | D3           | P0.14 / TRACEDATA[3]    |
+-------+--------------+-------------------------+
| 5     | D4           | P0.15 / TRACEDATA[2]    |
+-------+--------------+-------------------------+
| 6     | D5           | P0.16 / TRACEDATA[1]    |
+-------+--------------+-------------------------+
| 7     | D6           | P0.17                   |
+-------+--------------+-------------------------+
| 8     | D7           | P0.18 / TRACEDATA[3]  / |
|       |              | SWO                     |
+-------+--------------+-------------------------+

P4/P10 Digital I/O

+-------+--------------+-------------------------+
| PIN # | Signal Name  | NRF52832 Functions      |
+=======+==============+=========================+
| 1     | D8           | P0.19                   |
+-------+--------------+-------------------------+
| 2     | D9           | P0.20 / TRACECLK        |
+-------+--------------+-------------------------+
| 3     | D10 (SS)     | P0.22                   |
+-------+--------------+-------------------------+
| 4     | D11 (MOSI)   | P0.23                   |
+-------+--------------+-------------------------+
| 5     | D12 (MISO)   | P0.24                   |
+-------+--------------+-------------------------+
| 6     | D13 (SCK)    | P0.25                   |
+-------+--------------+-------------------------+
| 7     | GND          | N/A                     |
+-------+--------------+-------------------------+
| 8     | AREF         | P0.02 / AIN0            |
+-------+--------------+-------------------------+
| 9     | SDA          | P0.26                   |
+-------+--------------+-------------------------+
| 10    | SCL          | P0.27                   |
+-------+--------------+-------------------------+

P5/P11

+-------+--------------+-------------------------+
| PIN # | Signal Name  | NRF52832 Functions      |
+=======+==============+=========================+
| 1     | D12 (MISO)   | P0.24                   |
+-------+--------------+-------------------------+
| 2     | V5V          | N/A                     |
+-------+--------------+-------------------------+
| 3     | D13 (SCK)    | P0.25                   |
+-------+--------------+-------------------------+
| 4     | D11 (MOSI)   | P0.23                   |
+-------+--------------+-------------------------+
| 5     | RESET        | N/A                     |
+-------+--------------+-------------------------+
| 6     | N/A          | N/A                     |
+-------+--------------+-------------------------+

Programming and Debugging
*************************

Flashing
========

Follow the instructions in the :ref:`nordic_segger` page to install
and configure all the necessary software. Further information can be
found in :ref:`nordic_segger_flashing`. Then build and flash
applications as usual (see :ref:`build_an_application` and
:ref:`application_run` for more details).

Here is an example for the :ref:`hello_world` application.

First, run your favorite terminal program to listen for output.

.. code-block:: console

   $ minicom -D <tty_device> -b 115200

Replace :code:`<tty_device>` with the port where the board nRF52 DK
can be found. For example, under Linux, :code:`/dev/ttyACM0`.

Then build and flash the application in the usual way.

.. zephyr-app-commands::
   :zephyr-app: samples/hello_world
   :board: nrf52dk/nrf52832
   :goals: build flash

Debugging
=========

Refer to the :ref:`nordic_segger` page to learn about debugging Nordic boards with a
Segger IC.


Testing the LEDs and buttons in the nRF52 DK
********************************************

There are 2 samples that allow you to test that the buttons (switches) and LEDs on
the board are working properly with Zephyr:

.. code-block:: console

   samples/basic/blinky
   samples/basic/button

You can build and flash the examples to make sure Zephyr is running correctly on
your board. The button and LED definitions can be found in
:zephyr_file:`boards/nordic/nrf52dk/nrf52dk_nrf52832.dts`.

References
**********

.. target-notes::

.. _nRF52 DK website: https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF52-DK
.. _nRF52832 Product Specification: https://docs.nordicsemi.com/bundle/ps_nrf52832/page/nrf52832_ps.html

.. _nrf52dk_nrf52805:

nRF52805 emulation on nRF52 DK
##############################

Overview
********

The ``nrf52dk/nrf52805`` board is a modified version of the :ref:`nrf52dk_nrf52832`
that enforces the limitations imposed by the nRF52805 IC, which is a
cost-reduced variant of the original nRF52832. Since Nordic does not offer a
development kit for the nRF52805, you can use this board to develop for this
IC while using the nRF52 Development Kit (PCA10040).

See :ref:`nrf52dk_nrf52832` for more information about the development board and
`nRF52805 website`_ for the official reference on the IC itself.

References
**********

.. target-notes::

.. _nRF52805 website: https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF52805

.. _nrf52dk_nrf52810:

nRF52810 emulation on nRF52 DK
##############################

Overview
********

The ``nrf52dk/nrf52810`` board is a modified version of the :ref:`nrf52dk_nrf52832`
that enforces the limitations imposed by the nRF52810 IC, which is a
cost-reduced variant of the original nRF52832. Since Nordic does not offer a
development kit for the nRF52810 you can use this board to develop for this
IC while using the nRF52 Development Kit (PCA10040).

See :ref:`nrf52dk_nrf52832` for more information about the development board and
`nRF52810 website`_ for the official reference on the IC itself.


References
**********

.. target-notes::

.. _nRF52810 website: https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF52810

Part 3

한국어 전문 번역

개요

nRF52 Development Kit(PCA10040)는 Nordic Semiconductor nRF52832 Arm Cortex-M4F CPU를 탑재하며 ADC, CLOCK, FLASH, GPIO, I2C, MPU, NVIC, PWM, Bluetooth Low Energy용 RADIO, RTC, Segger RTT console, SPI, UART, WDT를 지원합니다.

nRF52 DK
nRF52 DK. 이미지 출처: Nordic Semiconductor, Zephyr 3.7.0.

보드 정보는 nRF52 DK 웹사이트에서 확인할 수 있습니다. nRF52832 Product Specification에는 프로세서 정보와 데이터시트가 들어 있습니다.

하드웨어

nRF52 DK에는 외부 oscillator가 두 개 있습니다. 저속 clock은 32.768 kHz, main clock은 32 MHz입니다.

지원 기능

nrf52dk/nrf52832 보드 구성에서 지원하는 하드웨어 기능은 다음과 같습니다.

인터페이스컨트롤러드라이버/컴포넌트
ADCon-chipadc
CLOCKon-chipclock_control
FLASHon-chipflash
GPIOon-chipgpio
I2C(M)on-chipi2c
MPUon-chiparch/arm
NVICon-chiparch/arm
PWMon-chippwm
RADIOon-chipBluetooth
RTCon-chipsystem clock
RTTSeggerconsole
SPI(M/S)on-chipspi
UARTon-chipserial
WDTon-chipwatchdog

그 밖의 하드웨어 기능은 아직 이 보드에서 활성화되지 않았습니다. 전체 기능은 nRF52 DK 웹사이트와 nRF52832 Product Specification을 참고하십시오.

연결과 입출력

LED

  • LED1(녹색): P0.17
  • LED2(녹색): P0.18
  • LED3(녹색): P0.19
  • LED4(녹색): P0.20
  • LD5(빨간색/녹색): OB LED 1/2

Push button

  • BUTTON1 = SW1 = P0.13
  • BUTTON2 = SW2 = P0.14
  • BUTTON3 = SW3 = P0.15
  • BUTTON4 = SW4 = P0.16
  • BOOT = SW5 = boot/reset

외부 connector

J-Link Prog Connector

PIN #Signal Name
1VDD
2IMCU_TMSS
3GND
4IMCU_TCKS
5V5V
6IMCU_TDOS
7Cut off
8IMCU_TDIS
9Cut off
10IMCU_RESET

Debug IN

PIN #Signal NameNRF52832 Functions
1VDDN/A
2SWDIOSWDIO
3GNDN/A
4SWDCLKSWDCLK
5GNDN/A
6P0.18P0.18 / TRACEDATA[0] / SWO
7Cut offN/A
8Cut offN/A
9GNDN/A
10P0.21P0.21 / RESET

Debug OUT

PIN #Signal Name
1EXT_VTG
2EXT_SWDIO
3GND
4EXT_SWDCLK
5GND
6EXT_SWO
7Cut off
8Cut off
9EXT_GND_DETECT
10EXT_RESET

Shield Debug and Current measurement

PIN #Signal Name
1VDD_nRF
2VDD
3SH_VTG
4SH_SWDIO
5SH_SWDCLK
6SH_SWO
7SH_RESET
8SH_GND_DETECT

Auxiliary

PIN #Signal NameNRF52832 Functions
1P0.00P0.00 / XL1
2P0.01P0.01 / XL2
3P0.21P0.21 / RESET
4P0.05_CP0.05 / AIN3
5P0.06_CP0.06
6P0.07_CP0.07
7P0.08_CP0.08
8P0.09P0.09 / NFC1
9P0.10P0.10 / NFC2

Arduino header

P1/P7 Power

PIN #Signal NameNRF52832 Functions
1VDDN/A
2VDDN/A
3RESETP0.21 / RESET
4VDDN/A
5V5VN/A
6GNDN/A
7GNDN/A
8VINN/A

P2/P8 Analog in

PIN #Signal NameNRF52832 Functions
1A0P0.03 / AIN1
2A1P0.04 / AIN2
3A2P0.28 / AIN4
4A3P0.29 / AIN5
5A4P0.30 / AIN6
6A5P0.31 / AIN7

P3/P9 Digital I/O

PIN #Signal NameNRF52832 Functions
1D0 (RX)P0.11
2D1 (TX)P0.12
3D2P0.13
4D3P0.14 / TRACEDATA[3]
5D4P0.15 / TRACEDATA[2]
6D5P0.16 / TRACEDATA[1]
7D6P0.17
8D7P0.18 / TRACEDATA[3] / SWO

P4/P10 Digital I/O

PIN #Signal NameNRF52832 Functions
1D8P0.19
2D9P0.20 / TRACECLK
3D10 (SS)P0.22
4D11 (MOSI)P0.23
5D12 (MISO)P0.24
6D13 (SCK)P0.25
7GNDN/A
8AREFP0.02 / AIN0
9SDAP0.26
10SCLP0.27

P5/P11

PIN #Signal NameNRF52832 Functions
1D12 (MISO)P0.24
2V5VN/A
3D13 (SCK)P0.25
4D11 (MOSI)P0.23
5RESETN/A
6N/AN/A

프로그래밍과 디버깅

Flash

Nordic Segger 안내에 따라 필요한 소프트웨어를 설치하고 구성한 뒤 일반적인 방식으로 애플리케이션을 빌드하고 flash합니다. 다음은 hello_world 예입니다.

먼저 원하는 terminal 프로그램으로 출력을 수신합니다.

$ minicom -D <tty_device> -b 115200

<tty_device>는 nRF52 DK가 연결된 port로 바꾸십시오. Linux에서는 예를 들어 /dev/ttyACM0입니다.

# From the root of the zephyr repository
west build -b nrf52dk/nrf52832 samples/hello_world
west flash

Debug

Segger IC를 이용한 Nordic 보드 디버깅 방법은 Nordic Segger 문서를 참고하십시오.

LED와 버튼 시험

다음 두 sample로 버튼(switch)과 LED가 Zephyr에서 올바르게 동작하는지 시험할 수 있습니다.

samples/basic/blinky
samples/basic/button

예제를 빌드하고 flash하면 보드에서 Zephyr가 정상 실행되는지 확인할 수 있습니다. 버튼과 LED 정의는 boards/nordic/nrf52dk/nrf52dk_nrf52832.dts에 있습니다.

nRF52 DK에서 nRF52805 에뮬레이션

nrf52dk/nrf52805 보드는 원래 nrf52dk/nrf52832을 수정해 nRF52832의 비용 절감형 변형인 nRF52805 IC의 제한을 강제한 대상입니다.

Nordic은 nRF52805용 개발 키트를 제공하지 않으므로 nRF52 Development Kit(PCA10040)를 사용하면서 이 대상으로 nRF52805용 소프트웨어를 개발할 수 있습니다. 개발 보드는 앞의 nRF52 DK 설명을, IC 자체의 공식 정보는 nRF52805 웹사이트를 참고하십시오.

nRF52 DK에서 nRF52810 에뮬레이션

nrf52dk/nrf52810 보드는 원래 nrf52dk/nrf52832을 수정해 nRF52832의 비용 절감형 변형인 nRF52810 IC의 제한을 강제한 대상입니다.

Nordic은 nRF52810용 개발 키트를 제공하지 않으므로 nRF52 Development Kit(PCA10040)를 사용하면서 이 대상으로 nRF52810용 소프트웨어를 개발할 수 있습니다. 개발 보드는 앞의 nRF52 DK 설명을, IC 자체의 공식 정보는 nRF52810 웹사이트를 참고하십시오.

Source

출처

영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.