boards/qemu/riscv32_xip/doc/index.html · boards/qemu/riscv32_xip/doc/index.rst 공식 원문 ↗

Zephyr 3.7.0 · Boards · QEMU

QEMU RISC-V 32-bit XIP

RISC-V 32-bit code의 XIP 실행 경로를 QEMU에서 시험하는 구성입니다.

Official pathboards/qemu/riscv32_xip/doc/index.html
Source fileboards/qemu/riscv32_xip/doc/index.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

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

Part 1

요약·해설

RISC-V 32-bit execute-in-place QEMU 실행과 debug 전문 번역.

ISA

RISC-V 32-bit

Mode

Execute in place

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 D0FBB7AC9C5ED8A7FBA9875250D7D9AD149A16EF72EDD4C04CBD5AD6E6ACACBF
.. _qemu_riscv32_xip:

RISCV32 XIP Emulation (QEMU)
############################

Overview
********

The RISCV32 XIP QEMU board configuration is used to emulate the RISCV32 architecture.

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

Applications for the ``qemu_riscv32_xip`` board configuration can be built and run in
the usual way for emulated boards (see :ref:`build_an_application` and
:ref:`application_run` for more details).

Flashing
========

While this board is emulated and you can't "flash" it, you can use this
configuration to run basic Zephyr applications and kernel tests in the QEMU
emulated environment. For example, with the :zephyr:code-sample:`synchronization` sample:

.. zephyr-app-commands::
   :zephyr-app: samples/synchronization
   :host-os: unix
   :board: qemu_riscv32_xip
   :goals: run

This will build an image with the synchronization sample app, boot it using
QEMU, and display the following console output:

.. code-block:: console

   thread_a: Hello World from cpu 0 on qemu_riscv32_xip!
   thread_b: Hello World from cpu 0 on qemu_riscv32_xip!
   thread_a: Hello World from cpu 0 on qemu_riscv32_xip!
   thread_b: Hello World from cpu 0 on qemu_riscv32_xip!
   thread_a: Hello World from cpu 0 on qemu_riscv32_xip!
   thread_b: Hello World from cpu 0 on qemu_riscv32_xip!
   thread_a: Hello World from cpu 0 on qemu_riscv32_xip!
   thread_b: Hello World from cpu 0 on qemu_riscv32_xip!
   thread_a: Hello World from cpu 0 on qemu_riscv32_xip!
   thread_b: Hello World from cpu 0 on qemu_riscv32_xip!
   thread_a: Hello World from cpu 0 on qemu_riscv32_xip!
   thread_b: Hello World from cpu 0 on qemu_riscv32_xip!
   thread_a: Hello World from cpu 0 on qemu_riscv32_xip!

Exit QEMU by pressing :kbd:`CTRL+A` :kbd:`x`.

Debugging
=========

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

Part 3

한국어 전문 번역

개요

qemu_riscv32_xip QEMU board 구성은 RISC-V 32-bit XIP architecture를 emulation합니다.

이 variant는 code를 RAM으로 복사하지 않고 execute-in-place(XIP) 형태로 실행하는 구성을 시험합니다.

프로그래밍과 디버깅

다른 emulated board와 같은 일반 방식으로 application을 build하고 실행할 수 있습니다.

Flash

Emulated board이므로 실제로 flash할 수는 없지만 기본 Zephyr application과 kernel test를 QEMU에서 실행할 수 있습니다. 다음은 synchronization sample 예입니다.

# Unix host의 Zephyr 저장소 루트에서
west build -b qemu_riscv32_xip samples/synchronization -t run

Image를 build하고 QEMU로 boot하면 다음 output이 표시됩니다.

thread_a: Hello World from cpu 0 on qemu_riscv32_xip!
thread_b: Hello World from cpu 0 on qemu_riscv32_xip!
thread_a: Hello World from cpu 0 on qemu_riscv32_xip!
thread_b: Hello World from cpu 0 on qemu_riscv32_xip!
thread_a: Hello World from cpu 0 on qemu_riscv32_xip!
thread_b: Hello World from cpu 0 on qemu_riscv32_xip!
thread_a: Hello World from cpu 0 on qemu_riscv32_xip!
thread_b: Hello World from cpu 0 on qemu_riscv32_xip!
thread_a: Hello World from cpu 0 on qemu_riscv32_xip!
thread_b: Hello World from cpu 0 on qemu_riscv32_xip!
thread_a: Hello World from cpu 0 on qemu_riscv32_xip!
thread_b: Hello World from cpu 0 on qemu_riscv32_xip!
thread_a: Hello World from cpu 0 on qemu_riscv32_xip!

Ctrl+A를 누른 뒤 x를 눌러 QEMU를 종료합니다.

Debug

일반 Zephyr application debugging 절차를 따릅니다.

Source

출처

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