This shows you the differences between two versions of the page.
|
iothings:laboratoare:2025:lab11 [2025/12/15 16:59] dan.tudose [7.3 No console output after flashing] |
iothings:laboratoare:2025:lab11 [2026/01/03 18:10] (current) dan.tudose |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Lab 11. Zephyr RTOS ====== | + | ====== Lab 11. Zephyr RTOS: Intro, Building a simple app ====== |
| + | |||
| + | Zephyr OS is a small, open-source real-time operating system (RTOS) designed for resource-constrained embedded and IoT devices, from tiny microcontrollers up to more capable edge hardware. It focuses on predictable, low-latency behavior with a preemptive kernel, strong configurability (you build only what you need), and broad hardware support through a clean device-driver model. Zephyr includes common embedded features like threads, synchronization primitives, timers, power management, networking stacks (e.g., TCP/IP, Bluetooth LE), and security options, all maintained under the Linux Foundation with an emphasis on portability, modularity, and production use. | ||
| + | |||
| + | {{ :iothings:laboratoare:2025:zephyr_rtos_logo.png?300|}} | ||
| This tutorial walks you through: | This tutorial walks you through: | ||
| Line 206: | Line 210: | ||
| int main(void) | int main(void) | ||
| { | { | ||
| - | printk("Hello World from Sparrow (ESP32-C6)!\n"); | ||
| while (1) { | while (1) { | ||
| + | printk("Hello World from Sparrow (ESP32-C6)!\n"); | ||
| k_sleep(K_SECONDS(1)); | k_sleep(K_SECONDS(1)); | ||
| } | } | ||
| Line 283: | Line 287: | ||
| </code> | </code> | ||
| - | Then build: | + | Then go to your ''sparrow_hello'' folder and build: |
| <code bash> | <code bash> | ||