boards/u-blox/ubx_bmd345eval/doc/index.html · boards/u-blox/ubx_bmd345eval/doc/index.rst 공식 원문 ↗

Zephyr 3.7.0 · Boards · u-blox · FEM

u-blox BMD-345-EVAL

PA/LNA 제어 상태와 FEM이 점유하는 Arduino pin까지 분리해 설명합니다.

Official pathboards/u-blox/ubx_bmd345eval/doc/index.html
Source fileboards/u-blox/ubx_bmd345eval/doc/index.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

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

Part 1

요약·해설

표 12개 113행, 공식 이미지 2개, FEM 상태표와 UART1 overlay를 보존했습니다.

CPU

nRF52840 M4F

FEM

RFX2411 PA/LNA

Radio

BLE · 802.15.4

Unavailable

D1 · D3 · D4 · D5

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 AB0E623039BE31642AD275C9764EC0B8E82B491518A80398408519E36F321193
.. _ubx_bmd345eval_nrf52840:

u-blox EVK-BMD-34/38: BMD-345-EVAL
##################################

Overview
********

The BMD-345-EVALhardware provides support for the u-blox BMD-345
Bluetooth 5.0 modules, based on the Nordic Semiconductor nRF52840
ARM Cortex-M4F CPU and Skyworks RFX2411 Front End Module (FEM),
also known as a Power Amplifier / Low Noise Amplifier (PA/LNA).
Both support 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 and 802.15.4)
* :abbr:`RTC (nRF RTC System Clock)`
* Segger RTT (RTT Console)
* :abbr:`SPI (Serial Peripheral Interface)`
* :abbr:`UART (Universal asynchronous receiver-transmitter)`
* :abbr:`USB (Universal Serial Bus)`
* :abbr:`WDT (Watchdog Timer)`

.. figure:: ../../../../../../../boards/u-blox/ubx_bmd345eval/doc/img/bmd-345-eval_features.jpg
     :align: center
     :alt: BMD 345 EVAL

     BMD-345-EVAL (Credit: ublox AG)

More information about the BMD-345-EVAL and BMD-345 module can be
found at the `u-blox website`_.


Hardware
********

The BMD-345 on the BMD-345-EVAL contains an internal high-frequency
oscillator at 32MHz. There is also a low frequency (slow)
oscillator of 32.768kHz. The BMD-345 does not include the slow
crystal; however, the BMD-345-EVAL does.

.. note::

	When targeting a custom design without a slow crystal, be sure
	to modify code to utilize the internal RC oscillator for the
	slow clock.

Front End Module
================

BMD-345 utilizes the Skyworks RFX2411 front end module (FEM).
The FEM provides higher output power and better sensitivity.

FEM pin assignments
-------------------

+-------------+--------------+----------+--------+----------+---------+
| GPIO Number | Signal Name  | Shutdown | Bypass | Transmit | Receive |
+=============+==============+==========+========+==========+=========+
| P1.05       | TX_EN        | Low      | Low    | High     | Low     |
+-------------+--------------+----------+--------+----------+---------+
| P1.06       | RX_EN        | Low      | Low    | Low      | High    |
+-------------+--------------+----------+--------+----------+---------+
| P1.04       | MODE         | Low      | High   | Low      | Low     |
+-------------+--------------+----------+--------+----------+---------+
| P1.02       | A_SEL        | Low      | Low    | Low      | Low     |
+-------------+--------------+----------+--------+----------+---------+

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

The BMD-345-EVAL 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,           |
|           |            | IEEE 802.15.4        |
+-----------+------------+----------------------+
| RTC       | on-chip    | system clock         |
+-----------+------------+----------------------+
| RTT       | Segger     | console              |
+-----------+------------+----------------------+
| SPI(M/S)  | on-chip    | spi                  |
+-----------+------------+----------------------+
| UART      | on-chip    | serial               |
+-----------+------------+----------------------+
| USB       | on-chip    | usb                  |
+-----------+------------+----------------------+
| WDT       | on-chip    | watchdog             |
+-----------+------------+----------------------+

Other hardware features have not been enabled yet for this board.
See the `u-blox website`_ for a complete list of BMD-345-EVAL
hardware features.

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

LED
---

* LED1 (red) = P0.13
* LED2 (red) = P0.14
* LED3 (green) = P0.15
* LED4 (green) = P0.16
* D5 (red) = OB LED 1
* D6 (green) = OB LED 2

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

* BUTTON1 = SW1 = P0.11
* BUTTON2 = SW2 = P0.12
* BUTTON3 = SW3 = P0.24
* BUTTON4 = SW4 = P0.25
* BOOT = SW5 = boot/reset

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

.. figure:: ../../../../../../../boards/u-blox/ubx_bmd345eval/doc/img/bmd-345-eval_pin_out.jpg
     :align: center
     :alt: BMD-345-EVAL pin-out

.. note::
	The pin numbers noted below are referenced to
	the pin 1 markings on the BMD-340-EVAL or
	BMD-341-EVAL for each header

J-Link Prog Connector (J2)

+-------+--------------+
| 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 OUT (J3)

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

Debug IN (J26)

+-------+----------------+
| PIN # | Signal Name    |
+=======+================+
| 1     | BMD-340_VCC    |
+-------+----------------+
| 2     | BMD-340_SWDIO  |
+-------+----------------+
| 3     | GND            |
+-------+----------------+
| 4     | BMD-340_SWDCLK |
+-------+----------------+
| 5     | GND            |
+-------+----------------+
| 6     | BMD-340_SWO    |
+-------+----------------+
| 7     | N/C            |
+-------+----------------+
| 8     | N/C            |
+-------+----------------+
| 9     | GND            |
+-------+----------------+
| 10    | BMD-340_RESET  |
+-------+----------------+

Auxiliary (J9)

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

Auxiliary (J10)

+-------+-------------------+
| PIN # | Signal Name       |
+=======+===================+
| 1     | P0.11 / TRACED[2] |
+-------+-------------------+
| 2     | P0.12 / TRACED[1] |
+-------+-------------------+
| 3     | P0.13             |
+-------+-------------------+
| 4     | P0.14             |
+-------+-------------------+
| 5     | P0.15             |
+-------+-------------------+
| 6     | P0.16             |
+-------+-------------------+
| 7     | P0.17 / QSPI_CS   |
+-------+-------------------+
| 8     | P0.18 / RESET     |
+-------+-------------------+
| 9     | P0.19 / QSPI_CLK  |
+-------+-------------------+
| 10    | P0.20 / QSPI_D0   |
+-------+-------------------+
| 11    | P0.21 / QSPI_D1   |
+-------+-------------------+
| 12    | P0.22 / QSPI_D2   |
+-------+-------------------+
| 13    | P0.23 / QSPI_D3   |
+-------+-------------------+
| 14    | P0.24             |
+-------+-------------------+
| 15    | P0.25             |
+-------+-------------------+
| 16    | P1.00 / TRACED[0] |
+-------+-------------------+
| 17    | P1.09 / TRACED[3] |
+-------+-------------------+
| 18    | No connection     |
+-------+-------------------+

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

Power (J5)

+-------+--------------+-------------------------+
| PIN # | Signal Name  | BMD-345 Functions       |
+=======+==============+=========================+
| 1     | VSHLD        | N/A                     |
+-------+--------------+-------------------------+
| 2     | VSHLD        | N/A                     |
+-------+--------------+-------------------------+
| 3     | RESET        | P0.18 / RESET           |
+-------+--------------+-------------------------+
| 4     | VSHLD        | N/A                     |
+-------+--------------+-------------------------+
| 5     | V5V          | N/A                     |
+-------+--------------+-------------------------+
| 6     | GND          | N/A                     |
+-------+--------------+-------------------------+
| 7     | GND          | N/A                     |
+-------+--------------+-------------------------+
| 8     | N/C          | N/A                     |
+-------+--------------+-------------------------+

Analog in (J8)

+-------+--------------+-------------------------+
| PIN # | Signal Name  | BMD-345 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            |
+-------+--------------+-------------------------+

Digital I/O (J7)

+-------+--------------+-------------------------+
| PIN # | Signal Name  | BMD-345 Functions       |
+=======+==============+=========================+
| 1     | D7           | P1.08                   |
+-------+--------------+-------------------------+
| 2     | D6           | P1.07                   |
+-------+--------------+-------------------------+
| 3     | N/C          | N/A                     |
+-------+--------------+-------------------------+
| 4     | N/C          | N/A                     |
+-------+--------------+-------------------------+
| 5     | N/C          | N/A                     |
+-------+--------------+-------------------------+
| 6     | D2           | P1.03                   |
+-------+--------------+-------------------------+
| 7     | N/C          | N/A                     |
+-------+--------------+-------------------------+
| 8     | D0 (RX)      | P1.01                   |
+-------+--------------+-------------------------+

Digital I/O (J6)

+-------+--------------+-------------------------+
| PIN # | Signal Name  | BMD-345 Functions       |
+=======+==============+=========================+
| 1     | SCL          | P0.27                   |
+-------+--------------+-------------------------+
| 2     | SDA          | P0.26                   |
+-------+--------------+-------------------------+
| 3     | AREF         | P0.02 / AIN0            |
+-------+--------------+-------------------------+
| 4     | GND          | N/A                     |
+-------+--------------+-------------------------+
| 5     | D13 (SCK)    | P1.15                   |
+-------+--------------+-------------------------+
| 6     | D12 (MISO)   | P1.14                   |
+-------+--------------+-------------------------+
| 7     | D11 (MOSI)   | P1.13                   |
+-------+--------------+-------------------------+
| 8     | D10 (SS)     | P1.12                   |
+-------+--------------+-------------------------+
| 9     | D9           | P1.11                   |
+-------+--------------+-------------------------+
| 10    | D8           | P1.10                   |
+-------+--------------+-------------------------+

J11

+-------+--------------+-------------------------+
| PIN # | Signal Name  | BMD-345 Functions       |
+=======+==============+=========================+
| 1     | D12 (MISO)   | P0.14                   |
+-------+--------------+-------------------------+
| 2     | V5V          | N/A                     |
+-------+--------------+-------------------------+
| 3     | D13 (SCK)    | P0.15                   |
+-------+--------------+-------------------------+
| 4     | D11 (MOSI)   | P0.13                   |
+-------+--------------+-------------------------+
| 5     | RESET        | N/A                     |
+-------+--------------+-------------------------+
| 6     | N/A          | N/A                     |
+-------+--------------+-------------------------+

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

Applications for the BMD-345-EVAL board
configurations can be built and flashed in the usual way
(see :ref:`build_an_application` and :ref:`application_run`
for more details); however, the standard debugging targets
are not currently available.

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 BMD-345-EVAL
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: ubx_bmd345eval/nrf52840
   :goals: build flash

Debugging
=========

Refer to the :ref:`nordic_segger` page to learn about debugging
u-blox boards with a Segger J-LINK-OB IC.


Testing the LEDs and buttons in the BMD-345-EVAL
*****************************************************************

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/u-blox/ubx_bmd345eval/ubx_bmd345eval_nrf52840.dts`.

Using UART1
***********

The following approach can be used when an application needs to use
more than one UART for connecting peripheral devices:

1. Add device tree overlay file to the main directory of your
   application:

   .. code-block:: devicetree

      &pinctrl {
         uart1_default: uart1_default {
            group1 {
               psels = <NRF_PSEL(UART_TX, 0, 14)>,
                       <NRF_PSEL(UART_RX, 0, 16)>;
            };
         };
         /* required if CONFIG_PM_DEVICE=y */
         uart1_sleep: uart1_sleep {
            group1 {
               psels = <NRF_PSEL(UART_TX, 0, 14)>,
                       <NRF_PSEL(UART_RX, 0, 16)>;
               low-power-enable;
            };
         };
      };

      &uart1 {
        compatible = "nordic,nrf-uarte";
        current-speed = <115200>;
        status = "okay";
        pinctrl-0 = <&uart1_default>;
        pinctrl-1 = <&uart1_sleep>;
        pinctrl-names = "default", "sleep";
      };

   In the overlay file above, pin P0.16 is used for RX and P0.14 is
   used for TX

2. Use the UART1 as ``DEVICE_DT_GET(DT_NODELABEL(uart1))``

Overlay file naming
===================

The file has to be named ``<board>.overlay`` and placed in the app
main directory to be picked up automatically by the device tree
compiler.

Selecting the pins
==================

Pins can be configured in the board pinctrl file. To see the available mappings,
open the data sheet for the BMD-345 at the `u-blox website`_, Section 2
'Pin definition'. In the table 3 select the pins marked 'GPIO'.
Note that pins marked as 'Standard drive, low frequency I/O only
(<10 kH' can only be used in under-10KHz applications.
They are not suitable for 115200 speed of UART.

.. note:
  Pins are defined according to the "nRF52" pin number, not the module
  pad number.

References
**********

.. target-notes::

.. _u-blox website: https://www.u-blox.com/en/product/bmd-34-series-open-cpu

Part 3

한국어 전문 번역

BMD-345-EVAL evaluation board
BMD-345-EVAL (Credit: u-blox AG)

개요

BMD-345 module은 Skyworks RFX2411 FEM, 즉 PA/LNA를 함께 사용합니다. Nordic Semiconductor nRF52840 Arm Cortex-M4F를 기반으로 Bluetooth 5.0을 지원합니다.

  • ADC
  • CLOCK
  • FLASH
  • GPIO
  • I2C
  • MPU
  • NVIC
  • PWM
  • Bluetooth Low Energy·IEEE 802.15.4 radio
  • RTC system clock
  • Segger RTT console
  • SPI
  • UART
  • USB
  • WDT

하드웨어 clock

Module에는 32MHz internal high-frequency oscillator가 있습니다. 32.768kHz slow crystal은 module에는 없고 EVAL board에 있습니다. Slow crystal이 없는 custom design에서는 internal RC oscillator를 사용하도록 code를 수정해야 합니다.

Front End Module

BMD-345는 Skyworks RFX2411 FEM(PA/LNA)을 사용해 output power와 sensitivity를 높입니다.

GPIO NumberSignal NameShutdownBypassTransmitReceive
P1.05TX_ENLowLowHighLow
P1.06RX_ENLowLowLowHigh
P1.04MODELowHighLowLow
P1.02A_SELLowLowLowLow

지원 기능

InterfaceControllerDriver/Component
ADCon-chipadc
CLOCKon-chipclock_control
FLASHon-chipflash
GPIOon-chipgpio
I2C(M)on-chipi2c
MPUon-chiparch/arm
NVICon-chiparch/arm
PWMon-chippwm
RADIOon-chipBluetooth, IEEE 802.15.4
RTCon-chipsystem clock
RTTSeggerconsole
SPI(M/S)on-chipspi
UARTon-chipserial
USBon-chipusb
WDTon-chipwatchdog

표에 없는 기능은 아직 enable되지 않았습니다.

연결과 I/O

LED

  • LED1 (red) = P0.13
  • LED2 (red) = P0.14
  • LED3 (green) = P0.15
  • LED4 (green) = P0.16
  • D5 (red) = OB LED 1
  • D6 (green) = OB LED 2

Push buttons

  • BUTTON1 = SW1 = P0.11
  • BUTTON2 = SW2 = P0.12
  • BUTTON3 = SW3 = P0.24
  • BUTTON4 = SW4 = P0.25
  • BOOT = SW5 = boot/reset
BMD-345-EVAL pin-out

각 표의 pin 번호는 header의 pin 1 marking을 기준으로 합니다.

J-Link Prog Connector (J2)

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

Debug OUT (J3)

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

Debug IN (J26)

PIN #Signal Name
1BMD-340_VCC
2BMD-340_SWDIO
3GND
4BMD-340_SWDCLK
5GND
6BMD-340_SWO
7N/C
8N/C
9GND
10BMD-340_RESET

Auxiliary (J9)

PIN #Signal Name
1P0.10 / NFC2
2P0.09 / NFC1
3P0.08
4P0.07
5P0.06
6P0.05 / AIN3
7P0.01 / XL2
8P0.00 / XL1

Auxiliary (J10)

PIN #Signal Name
1P0.11 / TRACED[2]
2P0.12 / TRACED[1]
3P0.13
4P0.14
5P0.15
6P0.16
7P0.17 / QSPI_CS
8P0.18 / RESET
9P0.19 / QSPI_CLK
10P0.20 / QSPI_D0
11P0.21 / QSPI_D1
12P0.22 / QSPI_D2
13P0.23 / QSPI_D3
14P0.24
15P0.25
16P1.00 / TRACED[0]
17P1.09 / TRACED[3]
18No connection

Arduino Power (J5)

PIN #Signal NameBMD-345-EVAL Functions
1VSHLDN/A
2VSHLDN/A
3RESETP0.18 / RESET
4VSHLDN/A
5V5VN/A
6GNDN/A
7GNDN/A
8N/CN/A

Arduino Analog in (J8)

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

Arduino Digital I/O (J7)

PIN #Signal NameBMD-345-EVAL Functions
1D7P1.08
2D6P1.07
3N/CN/A
4N/CN/A
5N/CN/A
6D2P1.03
7N/CN/A
8D0 (RX)P1.01

Arduino Digital I/O (J6)

PIN #Signal NameBMD-345-EVAL Functions
1SCLP0.27
2SDAP0.26
3AREFP0.02 / AIN0
4GNDN/A
5D13 (SCK)P1.15
6D12 (MISO)P1.14
7D11 (MOSI)P1.13
8D10 (SS)P1.12
9D9P1.11
10D8P1.10

J11

PIN #Signal NameBMD-345-EVAL Functions
1D12 (MISO)P0.14
2V5VN/A
3D13 (SCK)P0.15
4D11 (MOSI)P0.13
5RESETN/A
6N/AN/A

Programming과 debugging

Application은 일반 방식으로 build·flash할 수 있지만 원문은 standard debugging target이 현재 제공되지 않는다고 명시합니다.

Flash

Nordic Segger 도구를 설치·설정한 뒤 terminal에서 출력을 엽니다. Linux 장치 예시는 /dev/ttyACM0입니다.

$ minicom -D <tty_device> -b 115200

hello_world를 build하고 flash합니다.

west build -b ubx_bmd345eval/nrf52840 samples/hello_world
west flash

Debug

Segger J-LINK-OB IC를 사용하는 u-blox board debug 절차는 Zephyr의 Nordic Segger 안내를 따릅니다.

LED와 button 시험

다음 sample로 switch와 LED가 정상 동작하는지 확인합니다.

samples/basic/blinky
samples/basic/button

정의는 boards/u-blox/ubx_bmd345eval/ubx_bmd345eval_nrf52840.dts에 있습니다.

UART1 사용

Peripheral 연결에 UART가 하나 더 필요하면 application main directory에 device tree overlay를 추가합니다. P0.16은 RX, P0.14는 TX입니다. CONFIG_PM_DEVICE=y일 때 sleep pinctrl도 필요합니다.

&pinctrl {
   uart1_default: uart1_default {
      group1 {
         psels = <NRF_PSEL(UART_TX, 0, 14)>,
                 <NRF_PSEL(UART_RX, 0, 16)>;
      };
   };
   /* required if CONFIG_PM_DEVICE=y */
   uart1_sleep: uart1_sleep {
      group1 {
         psels = <NRF_PSEL(UART_TX, 0, 14)>,
                 <NRF_PSEL(UART_RX, 0, 16)>;
         low-power-enable;
      };
   };
};

&uart1 {
  compatible = "nordic,nrf-uarte";
  current-speed = <115200>;
  status = "okay";
  pinctrl-0 = <&uart1_default>;
  pinctrl-1 = <&uart1_sleep>;
  pinctrl-names = "default", "sleep";
};

Code에서는 DEVICE_DT_GET(DT_NODELABEL(uart1))로 UART1을 얻습니다. 자동 탐색하려면 file 이름을 <board>.overlay로 지정해 application main directory에 둡니다.

Pin 선택

Board pinctrl file에서 pin을 바꿀 수 있습니다. Data sheet section 2의 pin definition table에서 GPIO로 표시된 pin을 선택합니다. “Standard drive, low frequency I/O only (<10 kHz)” pin은 10kHz 미만에서만 쓸 수 있어 UART 115200에는 적합하지 않습니다. Pin 번호는 module pad가 아니라 nRF52 pin 번호 기준입니다.

참고 자료

u-blox 공식 제품·data sheet 페이지

Source

출처

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