boards/microchip/m2gl025_miv/doc/index.html · boards/microchip/m2gl025_miv/doc/index.rst 공식 원문 ↗

Zephyr 3.7.0 · Boards · Microchip · IGLOO2 · RISC-V

Microchip M2GL025 Mi-V

IGLOO2 FPGA에 Mi-V RISC-V soft CPU를 배치해 Zephyr를 실행하는 board입니다.

Official pathboards/microchip/m2gl025_miv/doc/index.html
Source fileboards/microchip/m2gl025_miv/doc/index.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

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

Part 1

요약·해설

Mi-V RV32 build와 OpenOCD server, GDB remote load의 3단 실행 흐름을 다룹니다.

FPGA

IGLOO2 M2GL025

CPU

Mi-V RISC-V soft CPU · RV32

Tools

SoftConsole · OpenOCD · GDB

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 CD731DC8DC3AAB406CA3F570216734525749C66D53EA5606CD6F4BC6D0EAB3BA
.. _m2gl025-miv:

Microchip M2GL025 Mi-V
######################

Overview
********

The Microchip M2GL025 board is an IGLOO2 FPGA based development board.
The Mi-V RISC-V soft CPU can be deployed on the MGL025 board.
More information can be found on
`Microchip's website <https://www.microchip.com/en-us/products/fpgas-and-plds/fpga-and-soc-design-tools/mi-v>`_.

Programming and debugging
*************************

Building
========

Applications for the ``m2gl025_miv`` board configuration can be built as usual
(see :ref:`build_an_application`):

.. zephyr-app-commands::
   :board: m2gl025_miv
   :goals: build

Flashing
========

In order to upload the application to the device, you'll need OpenOCD and GDB
with RISC-V support.
You can get them as a part of SoftConsole SDK.
Download and installation instructions can be found on
`Microchip's SoftConsole website
<https://www.microchip.com/en-us/products/fpgas-and-plds/fpga-and-soc-design-tools/soc-fpga/softconsole>`_.

With the necessary tools installed, you can connect to the board using OpenOCD.
To establish an OpenOCD connection run:

.. code-block:: bash

   sudo LD_LIBRARY_PATH=<softconsole_path>/openocd/bin \
   <softconsole_path>/openocd/bin/openocd  --file \
   <softconsole_path>/openocd/share/openocd/scripts/board/microsemi-riscv.cfg


Leave it running, and in a different terminal, use GDB to upload the binary to
the board. You can use the RISC-V GDB from a toolchain delivered with
SoftConsole SDK.

Here is the GDB terminal command to connect to the device
and load the binary:

.. code-block:: console

   <softconsole_path>/riscv-unknown-elf-gcc/bin/riscv64-unknown-elf-gdb \
   -ex "target extended-remote localhost:3333" \
   -ex "set mem inaccessible-by-default off" \
   -ex "set arch riscv:rv32" \
   -ex "set riscv use_compressed_breakpoints no" \
   -ex "load" <path_to_executable>

Debugging
=========

Refer to the detailed overview of :ref:`application_debugging`.

Part 3

한국어 전문 번역

개요

Microchip M2GL025 board는 IGLOO2 FPGA 기반 development board입니다. Mi-V RISC-V soft CPU를 M2GL025 board에 deploy할 수 있습니다. 자세한 내용은 Microchip Mi-V website에서 확인할 수 있습니다.

Programming과 Debugging

Building

m2gl025_miv board configuration의 application은 일반적인 방식으로 build할 수 있습니다.

west build -b m2gl025_miv

Flashing

Application을 device에 upload하려면 RISC-V를 지원하는 OpenOCD와 GDB가 필요합니다. 두 도구는 SoftConsole SDK에 포함되며 download와 installation 방법은 Microchip SoftConsole website에서 확인할 수 있습니다.

필요한 도구를 설치한 뒤 다음 명령으로 OpenOCD connection을 시작합니다.

sudo LD_LIBRARY_PATH=<softconsole_path>/openocd/bin \
<softconsole_path>/openocd/bin/openocd  --file \
<softconsole_path>/openocd/share/openocd/scripts/board/microsemi-riscv.cfg

OpenOCD를 실행한 채 다른 terminal에서 SoftConsole SDK toolchain의 RISC-V GDB를 사용해 binary를 board에 upload합니다. 다음 명령은 device에 연결하고 executable을 load합니다.

<softconsole_path>/riscv-unknown-elf-gcc/bin/riscv64-unknown-elf-gdb \
-ex "target extended-remote localhost:3333" \
-ex "set mem inaccessible-by-default off" \
-ex "set arch riscv:rv32" \
-ex "set riscv use_compressed_breakpoints no" \
-ex "load" <path_to_executable>

Debugging

세부 절차는 Zephyr의 Application Debugging 안내를 참고하십시오.

Source

출처

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