Signed-off-by: Eduard Iten <eduard@iten.pro> |
||
|---|---|---|
| .. | ||
| boards | ||
| src | ||
| sysbuild | ||
| CMakeLists.txt | ||
| README.md | ||
| VERSION | ||
| prj.conf | ||
| sysbuild.conf | ||
README.md
README for the Hello World Zephyr Application
Overview
This is a minimal Hello World application built using the Zephyr RTOS. The application demonstrates basic logging functionality by printing a message every 5 seconds, including the version number of the application.
Project Structure
The project consists of the following files:
src/main.c: The entry point of the application that initializes logging and sets up a timer.include/app_version.h: Header file that defines the application version.VERSION: A text file containing the version number of the application.prj.conf: Configuration file for the Zephyr project, specifying necessary options.CMakeLists.txt: Build configuration file for CMake.README.md: Documentation for the project.
Building the Application
To build the application, follow these steps:
-
Ensure you have the Zephyr development environment set up.
-
Navigate to the
apps/gatewaydirectory. -
Run the following command to build the application:
west build -b <your_board> .Replace
<your_board>with the appropriate board name.
Running the Application
After building the application, you can flash it to your board using:
west flash
Once the application is running, you will see log messages printed every 5 seconds, including the version number.
Version
The version of this application can be found in the VERSION file and is also included in the log messages.