Differences

This shows you the differences between two versions of the page.

Link to this comparison view

iothings:laboratoare:2025:lab11 [2025/12/13 15:29]
dan.tudose
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>
Line 461: Line 465:
     </​code>​     </​code>​
  
 +==== 7.4 Custom serial script for Sparrow ====
 +
 +You can also try to run [[iothings:​laboratoare:​2025_code:​lab11_1|this python script]] instead of the built-in serial monitor, might help if the interface is stuck.
 ===== 8. References (primary docs) ===== ===== 8. References (primary docs) =====
  
iothings/laboratoare/2025/lab11.1765632592.txt.gz · Last modified: 2025/12/13 15:29 by dan.tudose
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0