samples/userspace/hello_world_user/README.html · samples/userspace/hello_world_user/README.rst 공식 원문 ↗

Zephyr 3.7.0 · Samples · Userspace

Userspace Hello World

Single-thread 또는 multi-thread application이 실행 mode를 console에 표시합니다.

Official pathsamples/userspace/hello_world_user/README.html
Source filesamples/userspace/hello_world_user/README.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

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

Part 1

요약·해설

Userspace availability에 따른 message 차이와 QEMU 실행을 설명합니다.

Preferred

UserSpace

Fallback

Privileged mode

Target

qemu_riscv32

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 392A3EC7DADE0177211079335854453214CB7E30071042F91237259C5CFD2ECA
.. _hello_world_user:

Hello World
###########

Overview
********
A simple Hello World example that can be used with any supported board and
prints 'Hello World from UserSpace!' to the console.
If unavailable or unconfigured then 'Hello World from privileged mode.'
is printed instead.

This application can be built into modes:

* single thread
* multi threading

Building and Running
********************

This project outputs 'Hello World from UserSpace!' to the console.
It can be built and executed on QEMU as follows:

.. zephyr-app-commands::
   :zephyr-app: samples/userspace/hello_world_user
   :host-os: unix
   :board: qemu_riscv32
   :goals: run
   :compact:

Sample Output
=============

.. code-block:: console

    Hello World from UserSpace! qemu_riscv32

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

Part 3

한국어 전문 번역

개요

지원되는 모든 board에서 사용할 수 있는 간단한 Hello World example입니다. Userspace를 사용할 수 있고 설정되어 있으면 console에 Hello World from UserSpace!를 출력합니다. 사용할 수 없거나 설정되지 않았다면 대신 Hello World from privileged mode.를 출력합니다.

이 application은 single thread mode 또는 multi-threading mode로 build할 수 있습니다.

빌드 및 실행

이 project는 console에 Hello World from UserSpace!를 출력합니다. 다음 command로 qemu_riscv32 QEMU target에서 build하고 실행할 수 있습니다.

west build -b qemu_riscv32 samples/userspace/hello_world_user
west build -t run

샘플 출력

출력은 application이 qemu_riscv32의 Userspace에서 실행되었음을 보여 줍니다.

Hello World from UserSpace! qemu_riscv32

QEMU를 종료하려면 CTRL+A를 누른 뒤 x를 누릅니다.

Source

출처

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