Part 1
요약·해설
지원 기능 17종과 핀 47행, LPUART 역할 분리, external flash 때문에 필요한 J-Link V7.80+, PixHawk console과 SWO 설정을 설명합니다.
Cortex-M7 · 600 MHz · 1 MB SRAM
CAN · PWM · GPS/MAG · telemetry
J-Link V7.80+ · J23 FMU port
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
89DA7AEA12434E968145FB7AA37C1E2701429CC13BD80CDB9257FDD09CFC33BA
.. _fmurt6:
NXP FMURT6
##################
Overview
********
The MIMXRT1062_FMURT6 adds to the industry's crossover
processor series and expands the i.MX RT series to three scalable families.
The i.MX RT1062 doubles the On-Chip SRAM to 1MB while keeping pin-to-pin
compatibility with i.MX RT1050. This series introduces additional features
ideal for real-time applications such as High-Speed GPIO, CAN FD, and
synchronous parallel NAND/NOR/PSRAM controller. The i.MX RT1062 runs on the
Arm® Cortex-M7® core up to 600 MHz.
.. image:: ../../../../../../../boards/nxp/mimxrt1062_fmurt6/doc/mimxrt1062_fmurt6.jpg
:align: center
:alt: MIMXRT1062_FMURT6
Hardware
********
- MIMXRT1062DVL6B MCU (600 MHz, 1024 KB on-chip memory)
- Memory
- 256 Mbit SDRAM
- 512 Mbit Hyper Flash
- TF socket for SD card
- Ethernet
- 10/100 Mbit/s Ethernet PHY
- USB
- USB 2.0 OTG connector
- USB 2.0 host connector
- Audio
- 3.5 mm audio stereo headphone jack
- Board-mounted microphone
- Left and right speaker out connectors
- Power
- 5 V DC jack
- Debug
- JTAG 20-pin connector
- OpenSDA with DAPLink
- Sensor
- BMI088 6-axis e-compass
- Expansion port
- Arduino interface
- CAN bus connector
For more information about the MIMXRT1062 SoC and MIMXRT1062-FMURT6 board, see
these references:
- `i.MX RT1060 Website`_
- `i.MX RT1060 Reference Manual`_
- `MIMXRT1062-FMURT6 User Guide`_
- `MIMXRT1062-FMURT6 Schematics`_
Supported Features
==================
The mimxrt1062_fmurt6 board configuration supports the hardware features listed
below. For additional features not yet supported, please also refer to the
:ref:`mimxrt1064_evk` , which is the superset board in NXP's i.MX RT10xx family.
NXP prioritizes enabling the superset board with NXP's Full Platform Support for
Zephyr. Therefore, the mimxrt1064_evk board may have additional features
already supported, which can also be re-used on this mimxrt1060_evk board:
+-----------+------------+-------------------------------------+
| Interface | Controller | Driver/Component |
+===========+============+=====================================+
| NVIC | on-chip | nested vector interrupt controller |
+-----------+------------+-------------------------------------+
| SYSTICK | on-chip | systick |
+-----------+------------+-------------------------------------+
| DISPLAY | on-chip | display |
+-----------+------------+-------------------------------------+
| FLASH | on-chip | QSPI hyper flash |
+-----------+------------+-------------------------------------+
| GPIO | on-chip | gpio |
+-----------+------------+-------------------------------------+
| SPI | on-chip | spi |
+-----------+------------+-------------------------------------+
| I2C | on-chip | i2c |
+-----------+------------+-------------------------------------+
| ADC | on-chip | adc |
+-----------+------------+-------------------------------------+
| WATCHDOG | on-chip | watchdog |
+-----------+------------+-------------------------------------+
| PWM | on-chip | pwm |
+-----------+------------+-------------------------------------+
| UART | on-chip | serial port-polling; |
| | | serial port-interrupt |
+-----------+------------+-------------------------------------+
| ENET | on-chip | ethernet |
+-----------+------------+-------------------------------------+
| USB | on-chip | USB device |
+-----------+------------+-------------------------------------+
| CAN | on-chip | can |
+-----------+------------+-------------------------------------+
| DMA | on-chip | dma |
+-----------+------------+-------------------------------------+
| GPT | on-chip | gpt |
+-----------+------------+-------------------------------------+
| FLEXSPI | on-chip | flash programming |
+-----------+------------+-------------------------------------+
The default configuration can be found in
:zephyr_file:`boards/nxp/mimxrt1062_fmurt6/mimxrt1062_fmurt6_defconfig`
Other hardware features are not currently supported by the port.
Connections and I/Os
====================
The MIMXRT1062 SoC has five pairs of pinmux/gpio controllers.
+---------------+-----------------+---------------------------+
| Name | Function | Usage |
+===============+=================+===========================+
| GPIO_AD_B1_08 | FLEXCAN1 TX | CAN |
+---------------+-----------------+---------------------------+
| GPIO_B0_03 | FLEXCAN1 RX | CAN |
+---------------+-----------------+---------------------------+
| GPIO_AD_B0_06 | PWM2A0 | PWM |
+---------------+-----------------+---------------------------+
| GPIO_EMC_08 | PWM2A1 | PWM |
+---------------+-----------------+---------------------------+
| GPIO_EMC_10 | PWM2A2 | PWM |
+---------------+-----------------+---------------------------+
| GPIO_AD_B0_09 | PWM2A3 | PWM |
+---------------+-----------------+---------------------------+
| GPIO_EMC_31 | LPUART7_TX | UART Console |
+---------------+-----------------+---------------------------+
| GPIO_EMC_32 | LPUART7_RX | UART Console |
+---------------+-----------------+---------------------------+
| GPIO_B0_04 | LPI2C2_SCL | I2C |
+---------------+-----------------+---------------------------+
| GPIO_B0_05 | LPI2C2_SDA | I2C |
+---------------+-----------------+---------------------------+
| GPIO_AD_B1_00 | LPI2C1_SCL | I2C |
+---------------+-----------------+---------------------------+
| GPIO_AD_B1_01 | LPI2C1_SDA | I2C |
+---------------+-----------------+---------------------------+
| GPIO_AD_B0_12 | LPI2C4_SCL | I2C |
+---------------+-----------------+---------------------------+
| GPIO_AD_B0_13 | LPI2C4_SDA | I2C |
+---------------+-----------------+---------------------------+
| WAKEUP | GPIO | SW0 |
+---------------+-----------------+---------------------------+
| GPIO_B1_01 | ENET_RX_DATA00 | Ethernet |
+---------------+-----------------+---------------------------+
| GPIO_B1_02 | ENET_RX_DATA01 | Ethernet |
+---------------+-----------------+---------------------------+
| GPIO_B1_03 | ENET_RX_EN | Ethernet |
+---------------+-----------------+---------------------------+
| GPIO_B0_12 | ENET_TX_DATA00 | Ethernet |
+---------------+-----------------+---------------------------+
| GPIO_B0_13 | ENET_TX_DATA01 | Ethernet |
+---------------+-----------------+---------------------------+
| GPIO_B0_14 | ENET_TX_EN | Ethernet |
+---------------+-----------------+---------------------------+
| GPIO_B0_15 | ENET_REF_CLK | Ethernet |
+---------------+-----------------+---------------------------+
| GPIO_B1_00 | ENET_RX_ER | Ethernet |
+---------------+-----------------+---------------------------+
| GPIO_B1_12 | GPIO | SD Card |
+---------------+-----------------+---------------------------+
| GPIO_B1_14 | USDHC1_VSELECT | SD Card |
+---------------+-----------------+---------------------------+
| GPIO_EMC_40 | ENET_MDC | Ethernet |
+---------------+-----------------+---------------------------+
| GPIO_B0_01 | ENET_MDIO | Ethernet |
+---------------+-----------------+---------------------------+
| GPIO_SD_B0_00 | USDHC1_CMD | SD Card |
+---------------+-----------------+---------------------------+
| GPIO_SD_B0_01 | USDHC1_CLK | SD Card |
+---------------+-----------------+---------------------------+
| GPIO_SD_B0_02 | USDHC1_DATA0 | SD Card |
+---------------+-----------------+---------------------------+
| GPIO_SD_B0_03 | USDHC1_DATA1 | SD Card |
+---------------+-----------------+---------------------------+
| GPIO_SD_B0_04 | USDHC1_DATA2 | SD Card |
+---------------+-----------------+---------------------------+
| GPIO_SD_B0_05 | USDHC1_DATA3 | SD Card |
+---------------+-----------------+---------------------------+
| GPIO_EMC_27 | LPSPI1_SCK | SPI |
+---------------+-----------------+---------------------------+
| GPIO_EMC_28 | LPSPI1_SDO | SPI |
+---------------+-----------------+---------------------------+
| GPIO_EMC_29 | LPSPI1_SDI | SPI |
+---------------+-----------------+---------------------------+
| GPIO_EMC_00 | LPSPI2_SCK | SPI |
+---------------+-----------------+---------------------------+
| GPIO_EMC_02 | LPSPI2_SDO | SPI |
+---------------+-----------------+---------------------------+
| GPIO_EMC_03 | LPSPI2_SDI | SPI |
+---------------+-----------------+---------------------------+
| GPIO_AD_B1_15 | LPSPI3_SCK | SPI |
+---------------+-----------------+---------------------------+
| GPIO_AD_B1_14 | LPSPI3_SDO | SPI |
+---------------+-----------------+---------------------------+
| GPIO_AD_B1_13 | LPSPI3_SDI | SPI |
+---------------+-----------------+---------------------------+
| GPIO_AD_B1_11 | ADC | ADC1 Channel 0 |
+---------------+-----------------+---------------------------+
| GPIO_AD_B1_09 | ADC | ADC1 Channel 14 |
+---------------+-----------------+---------------------------+
| GPIO_AD_B0_15 | ADC | ADC1 Channel 4 |
+---------------+-----------------+---------------------------+
| GPIO_AD_B1_02 | UART2_TX_GPS1 | UART GPS |
+---------------+-----------------+---------------------------+
| GPIO_AD_B1_03 | UART2_RX_GPS1 | UART GPS |
+---------------+-----------------+---------------------------+
System Clock
============
The MIMXRT1062 SoC is configured to use SysTick as the system clock source,
running at 600MHz.
When power management is enabled, the 32 KHz low frequency
oscillator on the board will be used as a source for the GPT timer to
generate a system clock. This clock enables lower power states, at the
cost of reduced resolution
Serial Port
===========
The MIMXRT1062 SoC has eight UARTs. ``LPUART7`` is configured for the console,
``LPUART8 and 2`` for GPS/MAG, ``LPUART3 and 4`` for Telemetry 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 :ref:`opensda-daplink-onboard-debug-probe`,
however the :ref:`pyocd-debug-host-tools` do not yet support programming the
external flashes on this board so you must reconfigure the board for one of the
following debug probes instead.
.. _Using J-Link RT1062:
Using J-Link
---------------------------------
Install the :ref:`jlink-debug-host-tools` and make sure they are in your search
path.
For Hyperflash support on i.MxRT106x use JLink_V780 or above.
There are two options: the onboard debug circuit can be updated with Segger
J-Link firmware, or :ref:`jlink-external-debug-probe` can be attached to the
FMURT6 on J23 FMU Debug Port.
Run JLink.exe and choose device / core as MIMXRT106A-ALEXA.
Configuring a Console
=====================
Regardless of your choice in debug probe, we will use the OpenSDA
microcontroller as a usb-to-serial adapter for the serial console.
Connect a USB cable from your PC to PixHawk debug adapter.
Use the following settings with your serial terminal of choice (minicom, putty,
etc.):
- Speed: 115200
- Data: 8 bits
- Parity: None
- Stop bits: 1
Using SWO
---------
SWO can be used as a logging backend, by setting ``CONFIG_LOG_BACKEND_SWO=y``.
Your SWO viewer should be configured with a CPU frequency of 132MHz, and
SWO frequency of 7500KHz.
Flashing
========
Here is an example for the :ref:`hello_world` application.
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: mimxrt1062_fmurt6
:goals: flash
Open a serial terminal, reset the board (press the SW9 button), and you should
see the following message in the terminal:
.. code-block:: console
***** Booting Zephyr OS v3.20.0 *****
Hello World! mimxrt1062_fmurt6
Debugging
=========
Here is an example for the :ref:`hello_world` application.
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: mimxrt1062_fmurt6
: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 v3.20.0 *****
Hello World! mimxrt1062_fmurt6
Troubleshooting
===============
If the west flash or debug commands fail, and the command hangs while executing
runners.jlink, confirm the J-Link debug probe is configured, powered, and
connected to the FMURT6 properly.
.. _MIMXRT1062-FMURT6 Website:
https://www.nxp.com/part/RDDRONE-FMURT6#
.. _MIMXRT1062-FMURT6 User Guide:
https://docs.px4.io/master/en/
.. _MIMXRT1062-FMURT6 Schematics:
https://github.com/NXPHoverGames/NXP-FMUMRT6
.. _i.MX RT1060 Website:
https://www.nxp.com/products/processors-and-microcontrollers/arm-based-processors-and-mcus/i.mx-applications-processors/i.mx-rt-series/i.mx-rt1060-crossover-processor-with-arm-cortex-m7-core:i.MX-RT1060
.. _i.MX RT1060 Datasheet:
https://www.nxp.com/docs/en/nxp/data-sheets/IMXRT1060CEC.pdf
.. _i.MX RT1060 Reference Manual:
https://www.nxp.com/webapp/Download?colCode=IMXRT1060RM
Part 3
한국어 전문 번역
개요
MIMXRT1062_FMURT6는 i.MX RT crossover processor 계열을 확장하는 flight-management 보드입니다. i.MX RT1050과 pin-to-pin 호환성을 유지하면서 on-chip SRAM을 1 MB로 늘렸고 High-Speed GPIO, CAN FD, synchronous parallel NAND/NOR/PSRAM controller를 제공합니다. Arm Cortex-M7 core는 최대 600 MHz로 동작합니다.

하드웨어
MIMXRT1062DVL6B: 600 MHz, 1024 KB on-chip memory- 256 Mbit SDRAM, 512 Mbit HyperFlash, SD card용 TF socket
- 10/100 Mbit/s Ethernet PHY
- USB 2.0 OTG·host connector
- 3.5 mm stereo headphone, board microphone, 좌·우 speaker output
- 5 V DC jack, JTAG 20-pin, DAPLink OpenSDA
- BMI088 6-axis e-compass
- Arduino expansion과 CAN bus connector
지원 기능
mimxrt1062_fmurt6 구성은 아래 기능을 지원합니다. 추가 기능은 i.MX RT10xx 상위 집합 보드 mimxrt1064_evk에 우선 활성화된 NXP Full Platform Support에서 재사용할 수 있습니다.
| 인터페이스 | 컨트롤러 | 드라이버/컴포넌트 |
|---|---|---|
NVIC | on-chip | nested vector interrupt controller |
SYSTICK | on-chip | systick |
DISPLAY | on-chip | display |
FLASH | on-chip | QSPI hyper flash |
GPIO | on-chip | gpio |
SPI | on-chip | spi |
I2C | on-chip | i2c |
ADC | on-chip | adc |
WATCHDOG | on-chip | watchdog |
PWM | on-chip | pwm |
UART | on-chip | serial port-polling; serial port-interrupt |
ENET | on-chip | ethernet |
USB | on-chip | USB device |
CAN | on-chip | can |
DMA | on-chip | dma |
GPT | on-chip | gpt |
FLEXSPI | on-chip | flash programming |
기본 구성은 boards/nxp/mimxrt1062_fmurt6/mimxrt1062_fmurt6_defconfig에 있으며 표 밖의 기능은 현재 port에서 지원하지 않습니다.
연결과 I/O
SoC에는 pinmux/GPIO controller 쌍이 5개 있습니다. CAN, PWM 4채널, console·GPS UART, I2C 3개 bus, Ethernet, SDHC, SPI 3개 bus, ADC를 포함한 원문 47행을 보존합니다.
| 이름 | 기능 | 용도 |
|---|---|---|
GPIO_AD_B1_08 | FLEXCAN1 TX | CAN |
GPIO_B0_03 | FLEXCAN1 RX | CAN |
GPIO_AD_B0_06 | PWM2A0 | PWM |
GPIO_EMC_08 | PWM2A1 | PWM |
GPIO_EMC_10 | PWM2A2 | PWM |
GPIO_AD_B0_09 | PWM2A3 | PWM |
GPIO_EMC_31 | LPUART7_TX | UART Console |
GPIO_EMC_32 | LPUART7_RX | UART Console |
GPIO_B0_04 | LPI2C2_SCL | I2C |
GPIO_B0_05 | LPI2C2_SDA | I2C |
GPIO_AD_B1_00 | LPI2C1_SCL | I2C |
GPIO_AD_B1_01 | LPI2C1_SDA | I2C |
GPIO_AD_B0_12 | LPI2C4_SCL | I2C |
GPIO_AD_B0_13 | LPI2C4_SDA | I2C |
WAKEUP | GPIO | SW0 |
GPIO_B1_01 | ENET_RX_DATA00 | Ethernet |
GPIO_B1_02 | ENET_RX_DATA01 | Ethernet |
GPIO_B1_03 | ENET_RX_EN | Ethernet |
GPIO_B0_12 | ENET_TX_DATA00 | Ethernet |
GPIO_B0_13 | ENET_TX_DATA01 | Ethernet |
GPIO_B0_14 | ENET_TX_EN | Ethernet |
GPIO_B0_15 | ENET_REF_CLK | Ethernet |
GPIO_B1_00 | ENET_RX_ER | Ethernet |
GPIO_B1_12 | GPIO | SD Card |
GPIO_B1_14 | USDHC1_VSELECT | SD Card |
GPIO_EMC_40 | ENET_MDC | Ethernet |
GPIO_B0_01 | ENET_MDIO | Ethernet |
GPIO_SD_B0_00 | USDHC1_CMD | SD Card |
GPIO_SD_B0_01 | USDHC1_CLK | SD Card |
GPIO_SD_B0_02 | USDHC1_DATA0 | SD Card |
GPIO_SD_B0_03 | USDHC1_DATA1 | SD Card |
GPIO_SD_B0_04 | USDHC1_DATA2 | SD Card |
GPIO_SD_B0_05 | USDHC1_DATA3 | SD Card |
GPIO_EMC_27 | LPSPI1_SCK | SPI |
GPIO_EMC_28 | LPSPI1_SDO | SPI |
GPIO_EMC_29 | LPSPI1_SDI | SPI |
GPIO_EMC_00 | LPSPI2_SCK | SPI |
GPIO_EMC_02 | LPSPI2_SDO | SPI |
GPIO_EMC_03 | LPSPI2_SDI | SPI |
GPIO_AD_B1_15 | LPSPI3_SCK | SPI |
GPIO_AD_B1_14 | LPSPI3_SDO | SPI |
GPIO_AD_B1_13 | LPSPI3_SDI | SPI |
GPIO_AD_B1_11 | ADC | ADC1 Channel 0 |
GPIO_AD_B1_09 | ADC | ADC1 Channel 14 |
GPIO_AD_B0_15 | ADC | ADC1 Channel 4 |
GPIO_AD_B1_02 | UART2_TX_GPS1 | UART GPS |
GPIO_AD_B1_03 | UART2_RX_GPS1 | UART GPS |
시스템 클록과 직렬 포트
SysTick은 600 MHz 시스템 클록 소스로 동작합니다. 전원 관리 시 32 KHz oscillator를 GPT timer source로 사용해 해상도를 낮추는 대신 저전력 상태를 지원합니다.
UART 8개 가운데 LPUART7은 console, LPUART8과 LPUART2는 GPS/MAG, LPUART3과 LPUART4는 telemetry로 구성하고 나머지는 사용하지 않습니다.
프로그래밍과 디버깅
디버그 프로브
기본 설정은 on-board OpenSDA DAPLink입니다. 그러나 pyOCD host tool은 이 보드의 external flash programming을 아직 지원하지 않으므로 다른 probe 구성으로 바꿔야 합니다.
J-Link
- J-Link host tool을 설치하고 검색 경로에 넣습니다.
- i.MX RT106x HyperFlash 지원에는
JLink_V780이상을 사용합니다. - 온보드 debug circuit을 SEGGER J-Link firmware로 갱신하거나, 외부 J-Link를
J23 FMU Debug Port에 연결합니다. JLink.exe에서 device/core로MIMXRT106A-ALEXA를 선택합니다.
콘솔
OpenSDA를 USB-to-serial adapter로 사용합니다. PC의 USB cable을 PixHawk debug adapter에 연결하고 terminal을 115200 baud, 8 bits, parity None, stop bit 1로 설정합니다.
SWO 사용
CONFIG_LOG_BACKEND_SWO=y로 SWO logging backend를 활성화할 수 있습니다. Viewer는 CPU frequency 132 MHz, SWO frequency 7500 KHz로 설정합니다.
플래시
# Zephyr 저장소 루트에서
west build -b mimxrt1062_fmurt6 samples/hello_world
west flash원문 지시대로 SW9을 눌러 reset하면 다음 메시지가 표시됩니다.
***** Booting Zephyr OS v3.20.0 *****
Hello World! mimxrt1062_fmurt6
디버깅
# Zephyr 저장소 루트에서
west build -b mimxrt1062_fmurt6 samples/hello_world
west debugDebugger에서 단계 실행하면 다음 메시지가 표시됩니다.
***** Booting Zephyr OS v3.20.0 *****
Hello World! mimxrt1062_fmurt6
문제 해결
west flash 또는 west debug가 runners.jlink 실행 중 멈추면 J-Link probe가 올바르게 구성되고 전원이 공급되며 FMURT6에 연결됐는지 확인합니다.
참고 자료
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.