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

Zephyr 3.7.0 · Boards · NXP · FRDM-MCXN947

NXP FRDM-MCXN947

150 MHz dual Cortex-M33, dual-bank flash, Ethernet QoS와 고속 USB를 갖춘 MCX N94/N54 prototype 보드입니다.

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

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

Part 1

요약·해설

MCX-N947의 memory·communication·accelerator interface와 CPU0 기본 target을 정리하고 MCU-Link를 LinkServer 또는 J-Link로 구성하는 흐름을 설명합니다.

MCU

Dual Cortex-M33 · 150 MHz

Memory

2 MB Flash · 512 KB RAM

Debug

MCU-Link · LinkServer · J-Link

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 F1D9156E5B7764D87DB2C7E7069C64AA5636D37C434211581D7DBD7D5584324B
.. _frdm_mcxn947:

NXP FRDM-MCXN947
################

Overview
********

FRDM-MCXN947 are compact and scalable development boards for rapid prototyping of
MCX N94 and N54 MCUs. They offer industry standard headers for easy access to the
MCUs I/Os, integrated open-standard serial interfaces, external flash memory and
an on-board MCU-Link debugger. MCX N Series are high-performance, low-power
microcontrollers with intelligent peripherals and accelerators providing multi-tasking
capabilities and performance efficiency.

.. image:: ../../../../../../../boards/nxp/frdm_mcxn947/doc/frdm_mcxn947.webp
   :align: center
   :alt: FRDM-MCXN947

Hardware
********

- MCX-N947 Dual Arm Cortex-M33 microcontroller running at 150 MHz
- 2MB dual-bank on chip Flash
- 512 KB RAM
- External Quad SPI flash over FlexSPI
- USB high-speed (Host/Device) with on-chip HS PHY. HS USB Type-C connectors
- 10x LP Flexcomms each supporting SPI, I2C, UART
- 2x FlexCAN with FD, 2x I3Cs, 2x SAI
- 1x Ethernet with QoS
- On-board MCU-Link debugger with CMSIS-DAP
- Arduino Header, FlexIO/LCD Header, SmartDMA/Camera Header, mikroBUS

For more information about the MCX-N947 SoC and FRDM-MCXN947 board, see:

- `MCX-N947 SoC Website`_
- `MCX-N947 Datasheet`_
- `MCX-N947 Reference Manual`_
- `FRDM-MCXN947 Website`_
- `FRDM-MCXN947 User Guide`_
- `FRDM-MCXN947 Board User Manual`_
- `FRDM-MCXN947 Schematics`_

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

The FRDM-MCXN947 board configuration supports the following hardware features:

+-----------+------------+-------------------------------------+
| Interface | Controller | Driver/Component                    |
+===========+============+=====================================+
| NVIC      | on-chip    | nested vector interrupt controller  |
+-----------+------------+-------------------------------------+
| SYSTICK   | on-chip    | systick                             |
+-----------+------------+-------------------------------------+
| PINMUX    | on-chip    | pinmux                              |
+-----------+------------+-------------------------------------+
| GPIO      | on-chip    | gpio                                |
+-----------+------------+-------------------------------------+
| UART      | on-chip    | serial port-polling;                |
|           |            | serial port-interrupt               |
+-----------+------------+-------------------------------------+
| SPI       | on-chip    | spi                                 |
+-----------+------------+-------------------------------------+
| DMA       | on-chip    | dma                                 |
+-----------+------------+-------------------------------------+
| I2C       | on-chip    | i2c                                 |
+-----------+------------+-------------------------------------+
| CLOCK     | on-chip    | clock_control                       |
+-----------+------------+-------------------------------------+
| FLASH     | on-chip    | soc flash                           |
+-----------+------------+-------------------------------------+
| FLEXSPI   | on-chip    | flash programming                   |
+-----------+------------+-------------------------------------+
| DAC       | on-chip    | dac                                 |
+-----------+------------+-------------------------------------+
| ENET QOS  | on-chip    | ethernet                            |
+-----------+------------+-------------------------------------+
| WATCHDOG  | on-chip    | watchdog                            |
+-----------+------------+-------------------------------------+
| PWM       | on-chip    | pwm                                 |
+-----------+------------+-------------------------------------+
| CTIMER    | on-chip    | counter                             |
+-----------+------------+-------------------------------------+
| USDHC     | on-chip    | sdhc                                |
+-----------+------------+-------------------------------------+
| VREF      | on-chip    | regulator                           |
+-----------+------------+-------------------------------------+
| ADC       | on-chip    | adc                                 |
+-----------+------------+-------------------------------------+
| USBHS     | on-chip    | USB device                          |
+-----------+------------+-------------------------------------+
| LPCMP     | on-chip    | sensor(comparator)                  |
+-----------+------------+-------------------------------------+
| FLEXCAN   | on-chip    | CAN                                 |
+-----------+------------+-------------------------------------+
| LPTMR     | on-chip    | counter                             |
+-----------+------------+-------------------------------------+
| FLEXIO    | on-chip    | flexio                              |
+-----------+------------+-------------------------------------+
| DISPLAY   | on-chip    | flexio; MIPI-DBI. Tested with       |
|           |            | :ref:`lcd_par_s035`                 |
+-----------+------------+-------------------------------------+

Targets available
==================

The default configuration file
:zephyr_file:`boards/nxp/frdm_mcxn947/frdm_mcxn947_mcxn947_cpu0_defconfig`
only enables the first core.

Other hardware features are not currently supported by the port.

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

The MCX-N947 SoC has 6 gpio controllers and has pinmux registers which
can be used to configure the functionality of a pin.

+------------+-----------------+----------------------------+
| Name       | Function        | Usage                      |
+============+=================+============================+
| P0_PIO1_8  | UART            | UART RX                    |
+------------+-----------------+----------------------------+
| P1_PIO1_9  | UART            | UART TX                    |
+------------+-----------------+----------------------------+

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

The MCX-N947 SoC is configured to use PLL0 running at 150MHz as a source for
the system clock.

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

The FRDM-MCXN947 SoC has 10 FLEXCOMM interfaces for serial communication.
Flexcomm 4 is configured as UART for the console.

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 MCU-Link CMSIS-DAP Onboard Debug Probe.

Using LinkServer
----------------

Linkserver is the default runner for this board, and supports the factory
default MCU-Link firmware. Follow the instructions in
:ref:`mcu-link-cmsis-onboard-debug-probe` to reprogram the default MCU-Link
firmware. This only needs to be done if the default onboard debug circuit
firmware was changed. To put the board in ``DFU mode`` to program the firmware,
short jumper J21.

Using J-Link
------------

There are two options. The onboard debug circuit can be updated with Segger
J-Link firmware by following the instructions in
:ref:`mcu-link-jlink-onboard-debug-probe`.
To be able to program the firmware, you need to put the board in ``DFU mode``
by shortening the jumper J21.
The second option is to attach a :ref:`jlink-external-debug-probe` to the
10-pin SWD connector (J23) of the board. Additionally, the jumper J19 must
be shortened.
For both options use the ``-r jlink`` option with west to use the jlink runner.

.. code-block:: console

   west flash -r jlink

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

Connect a USB cable from your PC to J17, 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: frdm_mcxn947/mcxn947/cpu0
   :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 build v3.6.0-479-g91faa20c6741 ***
   Hello World! frdm_mcxn947/mcxn947/cpu0

Debugging
=========

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

.. zephyr-app-commands::
   :zephyr-app: samples/hello_world
   :board: frdm_mcxn947/mcxn947/cpu0
   :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 build v3.6.0-479-g91faa20c6741 ***
   Hello World! frdm_mcxn947/mcxn947/cpu0

.. _MCX-N947 SoC Website:
   https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/mcx-arm-cortex-m/mcx-n-series-microcontrollers/mcx-n94x-54x-highly-integrated-multicore-mcus-with-on-chip-accelerators-intelligent-peripherals-and-advanced-security:MCX-N94X-N54X

.. _MCX-N947 Datasheet:
   https://www.nxp.com/docs/en/data-sheet/MCXNx4xDS.pdf

.. _MCX-N947 Reference Manual:
   https://www.nxp.com/webapp/Download?colCode=MCXNX4XRM

.. _FRDM-MCXN947 Website:
   https://www.nxp.com/design/design-center/development-boards/general-purpose-mcus/frdm-development-board-for-mcx-n94-n54-mcus:FRDM-MCXN947

.. _FRDM-MCXN947 User Guide:
   https://www.nxp.com/document/guide/getting-started-with-frdm-mcxn947:GS-FRDM-MCXNXX

.. _FRDM-MCXN947 Board User Manual:
   https://www.nxp.com/webapp/Download?colCode=UM12018

.. _FRDM-MCXN947 Schematics:
   https://www.nxp.com/webapp/Download?colCode=90818-MCXN947SH

Part 3

한국어 전문 번역

개요

FRDM-MCXN947은 MCX N94와 N54 MCU의 빠른 prototype 제작을 위한 compact하고 scalable한 development board입니다. industry-standard header로 MCU I/O에 쉽게 접근할 수 있으며 open-standard serial interface, external flash memory와 on-board MCU-Link debugger를 제공합니다.

MCX N series는 intelligent peripheral과 accelerator를 갖춘 high-performance low-power microcontroller로 multi-tasking capability와 성능 효율을 제공합니다.

NXP FRDM-MCXN947
NXP FRDM-MCXN947 개발 보드. 이미지 출처: NXP, Zephyr 3.7.0.

하드웨어

  • MCX-N947 dual Arm Cortex-M33 microcontroller, 150 MHz
  • 2 MB dual-bank on-chip flash와 512 KB RAM
  • FlexSPI를 통한 external Quad SPI flash
  • on-chip HS PHY와 USB High-Speed Host/Device, HS USB Type-C connector
  • 각각 SPI, I2C, UART를 지원하는 LP FlexComm 10개
  • FlexCAN FD 2개, I3C 2개, SAI 2개
  • QoS를 지원하는 Ethernet 1개
  • CMSIS-DAP을 사용하는 on-board MCU-Link debugger
  • Arduino header, FlexIO/LCD header, SmartDMA/Camera header, mikroBUS

지원 기능

인터페이스컨트롤러드라이버/컴포넌트
NVICon-chipnested vector interrupt controller
SYSTICKon-chipsystick
PINMUXon-chippinmux
GPIOon-chipgpio
UARTon-chipserial port-polling; serial port-interrupt
SPIon-chipspi
DMAon-chipdma
I2Con-chipi2c
CLOCKon-chipclock_control
FLASHon-chipsoc flash
FLEXSPIon-chipflash programming
DACon-chipdac
ENET QOSon-chipethernet
WATCHDOGon-chipwatchdog
PWMon-chippwm
CTIMERon-chipcounter
USDHCon-chipsdhc
VREFon-chipregulator
ADCon-chipadc
USBHSon-chipUSB device
LPCMPon-chipsensor(comparator)
FLEXCANon-chipCAN
LPTMRon-chipcounter
FLEXIOon-chipflexio
DISPLAYon-chipflexio; MIPI-DBI. Tested with lcd_par_s035

사용 가능한 Target

기본 configuration file boards/nxp/frdm_mcxn947/frdm_mcxn947_mcxn947_cpu0_defconfig은 첫 번째 core만 활성화합니다. 그 밖의 하드웨어 기능은 현재 이 port에서 지원되지 않습니다.

연결과 입출력

MCX-N947 SoC에는 GPIO controller가 6개 있으며 pinmux register로 pin 기능을 구성할 수 있습니다.

이름기능용도
P0_PIO1_8UARTUART RX
P1_PIO1_9UARTUART TX

System clock

MCX-N947 SoC는 150 MHz로 동작하는 PLL0을 system clock source로 사용합니다.

Serial port

FRDM-MCXN947 SoC에는 serial communication용 FLEXCOMM interface가 10개 있습니다. FlexComm 4가 console UART로 구성됩니다.

프로그래밍과 디버깅

일반적인 Zephyr application과 같은 방식으로 build하고 flash합니다. 기본 probe는 MCU-Link CMSIS-DAP on-board debug probe입니다.

LinkServer 사용

LinkServer가 기본 runner이며 factory-default MCU-Link firmware를 지원합니다. on-board debug circuit firmware를 변경한 경우에만 MCU-Link CMSIS 지침에 따라 기본 firmware를 다시 program하면 됩니다. firmware programming을 위한 DFU mode로 들어가려면 jumper J21을 short하십시오.

J-Link 사용

첫 번째 방법은 MCU-Link J-Link 지침에 따라 on-board debug circuit을 SEGGER J-Link firmware로 update하는 것입니다. programming하려면 J21을 short해 DFU mode로 들어갑니다.

두 번째 방법은 external J-Link debug probe를 보드의 10-pin SWD connector J23에 연결하고 jumper J19도 short하는 것입니다. 두 방법 모두 West의 -r jlink option을 사용합니다.

west flash -r jlink

Console 구성

PC에서 J17로 USB cable을 연결하고 serial terminal을 115200 baud, 8 data bits, parity None, 1 stop bit로 설정하십시오.

Flash

west build -b frdm_mcxn947/mcxn947/cpu0 samples/hello_world
west flash

RESET button으로 보드를 reset하면 다음 출력이 표시됩니다.

*** Booting Zephyr OS build v3.6.0-479-g91faa20c6741 ***
Hello World! frdm_mcxn947/mcxn947/cpu0

Debug

west build -b frdm_mcxn947/mcxn947/cpu0 samples/hello_world
west debug

debugger에서 application을 단계 실행하면 다음 출력이 표시됩니다.

*** Booting Zephyr OS build v3.6.0-479-g91faa20c6741 ***
Hello World! frdm_mcxn947/mcxn947/cpu0

참고 자료

Source

출처

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