zephyr/samples/hello_world
Benjamin Cabé 0ed09a8a51 samples: hello_world: set minimum flash requirement to 16K
Default in Twister is 32K, but 16K is a more "reasonable" goal and allows
to build hello_world against some of the most constrained boards in-tree.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-03-04 17:28:33 +01:00
..
src samples: hello_world: Use full board target string for hwmv2 boards 2024-03-21 20:10:46 +01:00
CMakeLists.txt
prj.conf
README.rst samples: hello_world: remove redundant title 2024-09-26 17:40:42 -04:00
sample.yaml samples: hello_world: set minimum flash requirement to 16K 2025-03-04 17:28:33 +01:00

.. zephyr:code-sample:: hello_world
   :name: Hello World

   Print "Hello World" to the console.

Overview
********

A simple sample that can be used with any :ref:`supported board <boards>` and
prints "Hello World" to the console.

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

This application can be built and executed on QEMU as follows:

.. zephyr-app-commands::
   :zephyr-app: samples/hello_world
   :host-os: unix
   :board: qemu_x86
   :goals: run
   :compact:

To build for another board, change "qemu_x86" above to that board's name.

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

.. code-block:: console

    Hello World! x86

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