44 lines
1.5 KiB
Markdown
44 lines
1.5 KiB
Markdown
# 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:
|
|
|
|
1. Ensure you have the Zephyr development environment set up.
|
|
2. Navigate to the `apps/gateway` directory.
|
|
3. 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. |