boards/nxp/lpcxpresso55s28/doc/index.html · boards/nxp/lpcxpresso55s28/doc/index.rst 공식 원문 ↗

Zephyr 3.7.0 · Boards · NXP · LPCXpresso55S28

NXP LPCXpresso55S28

150 MHz Cortex-M33 LPC55S28, 512 KB flash, microSD, audio codec과 accelerometer를 갖춘 개발 보드입니다.

Official pathboards/nxp/lpcxpresso55s28/doc/index.html
Source fileboards/nxp/lpcxpresso55s28/doc/index.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

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

Part 1

요약·해설

microSD·MMA8652·audio·USB 확장, WWDT·ADC 지원, SPI/I2C 핀, PLL1 144 MHz와 flash 작업 시 96 MHz 제한, P6 콘솔을 설명합니다.

MCU

LPC55S28 · Cortex-M33 · 150 MHz

Memory

512 KB flash · 256 KB SRAM

Board

microSD · audio · accelerometer

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 3EA5897E669D4693797C0C9C282A6854F73E28505FB09E659937080FAF9923B6
.. _lpcxpresso55s28:

NXP LPCXpresso55S28
###################

Overview
********

The LPCXpresso55S28 development board provides the ideal platform for evaluation
of and development with the LPC552x/S2x MCU based on the Arm® Cortex®-M33
architecture. The board includes a high-performance onboard debug probe, audio
subsystem and accelerometer, with several options for adding off-the-shelf
add-on boards for networking, sensors, displays, and other interfaces.

.. image:: ../../../../../../../boards/nxp/lpcxpresso55s28/doc/LPC55S28-EVK.jpg
   :align: center
   :alt: LPCXpresso55S28

Hardware
********

- LPC55S28 Arm® Cortex®-M33 microcontroller running at up to 150 MHz
- 512 KB flash and 256 KB SRAM on-chip
- Onboard, high-speed USB, Link2 debug probe with CMSIS-DAP and SEGGER J-Link
  protocol options
- UART and SPI port bridging from LPC55S28 target to USB via the onboard debug
  probe
- Hardware support for external debug probe
- 3 x user LEDs, plus Reset, ISP (3) and user buttons
- Micro SD card slot (4-bit SDIO)
- NXP MMA8652FCR1 accelerometer
- Stereo audio codec with line in/out
- High and full speed USB ports with micro A/B connector for host or device
  functionality
- MikroEletronika Click expansion option
- LPCXpresso-V3 expansion option compatible with Arduino UNO
- PMod compatible expansion / host connector

For more information about the LPC55S28 SoC and LPCXPresso55S28 board, see:

- `LPC55S28 SoC Website`_
- `LPC55S28 Datasheet`_
- `LPC55S28 User Manual`_
- `LPCXpresso55S28 Website`_
- `LPCXpresso55S28 User Manual`_
- `LPCXpresso55S28 Development Board Design Files`_

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

The lpcxpresso55s28 board configuration supports the hardware features listed
below.  For additional features not yet supported, please also refer to the
:ref:`lpcxpresso55s69` , which is the superset board in NXP's LPC55xx series.
NXP prioritizes enabling the superset board with NXP's Full Platform Support for
Zephyr.  Therefore, the lpcxpresso55s69 board may have additional features
already supported, which can also be re-used on this lpcxpresso55s28 board:

+-----------+------------+-------------------------------------+
| Interface | Controller | Driver/Component                    |
+===========+============+=====================================+
| NVIC      | on-chip    | nested vector interrupt controller  |
+-----------+------------+-------------------------------------+
| SYSTICK   | on-chip    | systick                             |
+-----------+------------+-------------------------------------+
| IOCON     | on-chip    | pinmux                              |
+-----------+------------+-------------------------------------+
| GPIO      | on-chip    | gpio                                |
+-----------+------------+-------------------------------------+
| I2C       | on-chip    | i2c                                 |
+-----------+------------+-------------------------------------+
| SPI       | on-chip    | spi                                 |
+-----------+------------+-------------------------------------+
| USART     | on-chip    | serial port-polling;                |
|           |            | serial port-interrupt               |
+-----------+------------+-------------------------------------+
| WWDT      | on-chip    | windowed watchdog timer             |
+-----------+------------+-------------------------------------+
| ADC       | on-chip    | adc                                 |
+-----------+------------+-------------------------------------+
| CLOCK     | on-chip    | clock_control                       |
+-----------+------------+-------------------------------------+
| RNG       | on-chip    | entropy;                            |
|           |            | random                              |
+-----------+------------+-------------------------------------+
| IAP       | on-chip    | flash programming                   |
+-----------+------------+-------------------------------------+

Other hardware features are not currently enabled.

The default configuration file
:zephyr_file:`boards/nxp/lpcxpresso55s28/lpcxpresso55s28_defconfig`

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

The LPC55S28 SoC has IOCON registers, which can be used to configure
the functionality of a pin.

+---------+-----------------+----------------------------+
| Name    | Function        | Usage                      |
+=========+=================+============================+
| PIO0_26 | SPI             | SPI MOSI                   |
+---------+-----------------+----------------------------+
| PIO0_29 | USART           | USART RX                   |
+---------+-----------------+----------------------------+
| PIO0_30 | USART           | USART TX                   |
+---------+-----------------+----------------------------+
| PIO1_1  | SPI             | SPI SSEL                   |
+---------+-----------------+----------------------------+
| PIO1_2  | SPI             | SPI SCK                    |
+---------+-----------------+----------------------------+
| PIO1_3  | SPI             | SPI MISO                   |
+---------+-----------------+----------------------------+
| PIO1_4  | GPIO            | RED LED                    |
+---------+-----------------+----------------------------+
| PIO1_6  | GPIO            | BLUE_LED                   |
+---------+-----------------+----------------------------+
| PIO1_7  | GPIO            | GREEN LED                  |
+---------+-----------------+----------------------------+
| PIO1_20 | I2C             | I2C SCL                    |
+---------+-----------------+----------------------------+
| PIO1_21 | I2C             | I2C SDA                    |
+---------+-----------------+----------------------------+

System Clock
============

The LPC55S28 SoC is configured to use PLL1 clocked from the external 24MHz
crystal, running at 144MHz as a source for the system clock. When the flash
controller is enabled, the core clock will be reduced to 96MHz. The application
may reconfigure clocks after initialization, provided that the core clock is
always set to 96MHz when flash programming operations are performed.

Serial Port
===========

The LPC55S28 SoC has 8 FLEXCOMM interfaces for serial communication. One is
configured as USART for the console and the remaining are not used.

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

Build and flash applications as usual (see :ref:`build_an_application`
and :ref:`application_run` for more details).

Configuring a Debug Probe
=========================

A debug probe is used for both flashing and debugging the board. This
board is configured by default to use the LPC-Link2 CMSIS-DAP Onboard
Debug Probe.

Configuring a Console
=====================

Connect a USB cable from your PC to P6, and use the serial terminal of your
choice (minicom, putty, etc.) with the following settings:

- Speed: 115200
- Data: 8 bits
- Parity: None
- Stop bits: 1

Flashing
========

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

.. zephyr-app-commands::
   :zephyr-app: samples/hello_world
   :board: lpcxpresso55s28
   :goals: flash

Open a serial terminal, reset the board (press the RESET button), and you should
see the following message in the terminal:

.. code-block:: console

   ***** Booting Zephyr OS v2.4.0 *****
   Hello World! lpcxpresso55s28

Debugging
=========

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

.. zephyr-app-commands::
   :zephyr-app: samples/hello_world
   :board: lpcxpresso55s28
   :goals: debug

Open a serial terminal, step through the application in your debugger, and you
should see the following message in the terminal:

.. code-block:: console

   ***** Booting Zephyr OS zephyr-v2.4.0 *****
   Hello World! lpcxpresso55s28

.. _LPC55S28 SoC Website:
   https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/lpc5500-cortex-m33/lpc552x-s2x-mainstream-arm-cortex-m33-based-microcontroller-family:LPC552x-S2x

.. _LPC55S28 Datasheet:
   https://www.nxp.com/docs/en/nxp/data-sheets/LPC55S2x_LPC552x_DS.pdf

.. _LPC55S28 User Manual:
   https://www.nxp.com/webapp/Download?colCode=UM11126

.. _LPCxpresso55S28 Website:
   https://www.nxp.com/design/software/development-software/lpcxpresso55s28-development-board:LPC55S28-EVK

.. _LPCXpresso55S28 User Manual:
   https://www.nxp.com/webapp/Download?colCode=UM11158

.. _LPCXpresso55S28 Development Board Design Files:
   https://www.nxp.com/webapp/Download?colCode=LPCXpresso55S69-DS

Part 3

한국어 전문 번역

개요

LPCXpresso55S28 개발 보드는 Arm Cortex-M33 아키텍처 기반 LPC552x/S2x MCU를 평가하고 개발하기에 적합한 플랫폼입니다. 고성능 온보드 디버그 프로브, audio subsystem과 accelerometer를 포함하며, 네트워크·센서·디스플레이·기타 인터페이스용 기성 확장 보드를 여러 방식으로 추가할 수 있습니다.

LPCXpresso55S28 보드
LPCXpresso55S28. 이미지 출처: NXP, Zephyr v3.7.0 공식 문서.

하드웨어

  • 최대 150 MHz로 동작하는 LPC55S28 Arm Cortex-M33 마이크로컨트롤러
  • 온칩 512 KB flash와 256 KB SRAM
  • CMSIS-DAP와 SEGGER J-Link 프로토콜을 선택할 수 있는 온보드 고속 USB Link2 디버그 프로브
  • 온보드 디버그 프로브를 통한 LPC55S28 target의 UART·SPI 포트 USB bridge
  • 외부 디버그 프로브 하드웨어 지원
  • 사용자 LED 3개와 Reset, ISP(3), user 버튼
  • 4-bit SDIO 방식 microSD 카드 슬롯
  • NXP MMA8652FCR1 accelerometer
  • line in/out을 갖춘 stereo audio codec
  • host 또는 device로 사용할 수 있는 micro A/B 커넥터의 High-Speed·Full-Speed USB 포트
  • MikroElektronika Click 확장
  • Arduino UNO 호환 LPCXpresso-V3 확장
  • PMod 호환 확장/host 커넥터

자세한 내용은 아래 참고 자료의 LPC55S28 SoC 웹사이트·데이터시트·User Manual과 보드 웹사이트·User Manual·설계 파일을 참고하십시오.

지원 기능

lpcxpresso55s28 보드 구성은 아래 하드웨어 기능을 지원합니다. 아직 직접 지원하지 않는 기능은 NXP LPC55xx 계열의 상위 집합 보드인 lpcxpresso55s69 문서도 참고하십시오. NXP는 Zephyr Full Platform Support를 상위 집합 보드에서 우선 활성화하므로, LPCXpresso55S69에 이미 지원된 추가 기능을 이 보드에서도 재사용할 수 있습니다.

인터페이스컨트롤러드라이버/컴포넌트
NVICon-chipnested vector interrupt controller
SYSTICKon-chipsystick
IOCONon-chippinmux
GPIOon-chipgpio
I2Con-chipi2c
SPIon-chipspi
USARTon-chipserial port-polling; serial port-interrupt
WWDTon-chipwindowed watchdog timer
ADCon-chipadc
CLOCKon-chipclock_control
RNGon-chipentropy; random
IAPon-chipflash programming

그 밖의 하드웨어 기능은 현재 활성화되어 있지 않습니다. 기본 구성 파일은 boards/nxp/lpcxpresso55s28/lpcxpresso55s28_defconfig입니다.

연결과 I/O

LPC55S28 SoC의 IOCON 레지스터로 각 핀의 기능을 구성할 수 있습니다.

이름기능용도
PIO0_26SPISPI MOSI
PIO0_29USARTUSART RX
PIO0_30USARTUSART TX
PIO1_1SPISPI SSEL
PIO1_2SPISPI SCK
PIO1_3SPISPI MISO
PIO1_4GPIORED LED
PIO1_6GPIOBLUE_LED
PIO1_7GPIOGREEN LED
PIO1_20I2CI2C SCL
PIO1_21I2CI2C SDA

시스템 클록

LPC55S28 SoC는 외부 24 MHz crystal에서 clock을 받는 PLL1을 시스템 클록 소스로 사용하며 144 MHz로 동작하도록 구성됩니다. Flash controller가 활성화되면 core clock은 96 MHz로 낮아집니다. 애플리케이션은 초기화 이후 clock을 다시 구성할 수 있지만, flash programming 작업 중에는 core clock을 반드시 96 MHz로 설정해야 합니다.

직렬 포트

LPC55S28 SoC에는 직렬 통신용 FLEXCOMM 인터페이스가 8개 있습니다. 그중 하나는 콘솔용 USART로 구성되고 나머지는 사용하지 않습니다.

프로그래밍과 디버깅

애플리케이션은 일반적인 Zephyr 절차로 빌드하고 플래시합니다.

디버그 프로브 구성

디버그 프로브는 보드 플래시와 디버깅에 모두 사용됩니다. 이 보드는 기본적으로 LPC-Link2 CMSIS-DAP 온보드 디버그 프로브를 사용하도록 구성되어 있습니다.

콘솔 구성

PC와 P6 사이를 USB 케이블로 연결하고 minicom, PuTTY 등 원하는 직렬 터미널에서 다음 설정을 사용합니다.

  • 속도: 115200
  • 데이터: 8 bits
  • 패리티: None
  • 정지 비트: 1

플래시

hello_world 애플리케이션을 빌드하고 플래시하는 예는 다음과 같습니다.

west build -b lpcxpresso55s28 samples/hello_world
west flash

직렬 터미널을 열고 RESET 버튼을 눌러 보드를 reset하면 다음 메시지가 나타납니다.

***** Booting Zephyr OS v2.4.0 *****
Hello World! lpcxpresso55s28

디버깅

hello_world 애플리케이션을 빌드하고 디버깅하는 예는 다음과 같습니다.

west build -b lpcxpresso55s28 samples/hello_world
west debug

직렬 터미널을 열고 디버거에서 애플리케이션을 단계 실행하면 터미널에 다음 메시지가 나타납니다.

***** Booting Zephyr OS zephyr-v2.4.0 *****
Hello World! lpcxpresso55s28

참고 자료

Source

출처

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