Build portable and scalable embedded systems through hands-on recipes
Dr. Roy Jamil, Dr. Ayoub Bourjilat

#Zephyr
#RTOS
#GPIO
#I2C
#ADC
#Embedded_Linux
🛠️ کتاب Zephyr RTOS Cookbook مجموعهای از دستورالعملهای دستبهکار ارائه میده برای حل چالشهای واقعی در توسعه اپلیکیشنهای Zephyr قابلحمل، مقیاسپذیر و آماده استفاده در عمل.
✨ ویژگیهای کلیدی
🧩 اپلیکیشنهای Zephyr رو با استفاده از West میسازی و سازماندهی میکنی تا ورکفلوهای چندریپویی تمیز، قابلبازتولید و قابلمدیریت داشته باشی
⚙️ قابلیتها رو با Kconfig پیکربندی میکنی و سختافزار رو با DeviceTree توصیف میکنی
🏭 سیستمهای قابلحمل و مقیاسپذیر برای دستگاههای صنعتی و IoT میسازی؛ با استفاده از سابسیستمهای Zephyr و مدل Device Driver
📘 توضیح کتاب
🔧 پذیرش Zephyr RTOS میتونه نسبت به کار با سیستمهای Bare-Metal، RTOSهای سنتی یا Embedded Linux حس خیلی متفاوتی داشته باشه. بهجای کدهای مخصوص برد که شدیداً به هم گره خوردهاند، Zephyr یک رویکرد پلتفرممحور داره که روی کامپوننتهای قابلاستفادهمجدد، سابسیستمهای استاندارد و رفتارهای مبتنی بر پیکربندی ساخته شده. این تغییر در ابتدا میتونه ناآشنا باشه، مخصوصاً برای دولوپرهایی که میخوان Zephyr رو در محصولهای واقعی به کار بگیرن.
📚 کتاب Zephyr RTOS Cookbook یک راهنمای Recipe-Based است که طراحی شده تا کمک کنه این گذار رو با اعتمادبهنفس انجام بدی. کتاب به Zephyr فقط مثل یک Kernel نگاه نمیکنه؛ بلکه نشون میده چطور باید باهاش مثل یک پلتفرم کامل کار کنی. یاد میگیری چطور پروژهها رو با Workspaceهای چندریپویی مدیریتشده با West ساختاردهی کنی، قابلیتهای سیستم رو با Kconfig فعال و سفارشی کنی، و سختافزار رو با DeviceTree تمیز توصیف کنی تا اپلیکیشنها روی بردهای مختلف قابلحمل بمونن.
🧠 هر Recipe روی یک تسک عملی تمرکز داره که موقع ساخت سیستمهای مبتنی بر Zephyr باهاش روبهرو میشی؛ از یکپارچهسازی Driverها و سابسیستمها گرفته تا فکر کردن درباره ترتیب Initialization، در دسترس بودن Deviceها و Permissionها در Runtime. تا پایان کتاب، میتونی اپلیکیشنهای Zephyr قابلنگهداری توسعه بدی، اونها رو با پیکربندیهای سختافزاری مختلف تطبیق بدی، و کدبیس خودت رو با اعتمادبهنفس بین پروژهها و تیمها اسکیل کنی.
🎯 چیزهایی که یاد میگیری
🧰 یک محیط توسعه Zephyr قابلبازتولید و Workspace مبتنی بر West راهاندازی میکنی
📦 اپلیکیشنها و ماژولها رو ساختاردهی میکنی
🏗️ جریان Build در Zephyr رو دنبال میکنی و خروجیهای تولیدشده کلیدی رو بررسی میکنی
⚙️ قابلیتها رو با Kconfig پیکربندی میکنی
🔌 سختافزار رو با DeviceTree توصیف و سفارشی میکنی
🧩 از سابسیستمهای رایج استفاده میکنی: GPIO، I2C، ADC، Logging و Shell
🔐 از User Mode برای اعمال امنیت استفاده میکنی
🎛️ با استفاده از Driverها، Peripheralها رو از داخل اپلیکیشنها کنترل میکنی
👤 این کتاب برای چه کسانیه؟
👨💻 این کتاب برای دولوپرها و مهندسهای Embedded نوشته شده که از RTOSهای سنتی، محیطهای Bare-Metal یا Embedded Linux به سمت Zephyr میان. مخاطب کتاب کسانی هستن که تجربه کار با Embedded C دارن و میخوان Zephyr رو بهعنوان یک پلتفرم مقیاسپذیر برای ساخت سیستمهای قابلحمل بپذیرن؛ سیستمهایی که بشه اونها رو بهشکل یکپارچه روی چندین برد و بین تیمهای توسعه مختلف دیپلوی کرد.
📖 فهرست مطالب
فصل ۱. معرفی پروژه Zephyr
فصل ۲. ساختاردهی و Build کردن اپلیکیشنهای Zephyr
فصل ۳. پیکربندی اپلیکیشنهای Zephyr با Kconfig
فصل ۴. استفاده از DeviceTree برای توصیف سختافزار
فصل ۵. بررسی مدل Device Driver در Zephyr
فصل ۶. Initialization سیستم و Multithreading
فصل ۷. کار با سابسیستمهای Zephyr
فصل ۸. User Mode در Zephyr
👤 درباره نویسندگان
👨🏫 دکتر روی جمیل مهندس Embedded Systems، مدرس و مشاور در AC6 است و روی Zephyr RTOS و Embedded Linux تخصص داره. او دکترای Embedded Systems داره و پژوهشش روی پلتفرمهای Asymmetric Multiprocessing متمرکز بوده؛ پلتفرمهایی که Linux و سیستمعاملهای Real-Time رو با هم ترکیب میکنن. روی بهعنوان نماینده Zephyr Project Technical Steering Committee (TSC)، از سال ۲۰۲۲ آموزش حرفهای Zephyr رو در سراسر دنیا ارائه داده. او به شرکتهایی کمک میکنه که دارن Zephyr رو میپذیرن و Driverها و بردهای جدید رو Port میکنن.
👨💻 دکتر ایوب بورجیلات مهندس Embedded Systems، مدرس و مشاور در AC6 است. او دکترای Embedded Systems داره و تجربه عملی گستردهای در RTOSها، معماریهای پردازنده و پلتفرمهای FPGA به همراه خودش میاره. او از طریق آموزش و مشاوره، روی معماری سیستم مقاوم، یکپارچهسازی مقیاسپذیر Zephyr، و ساخت محصولهای Embedded قابلممیزی و Secure-by-Design تمرکز میکنه؛ محصولهایی که با محدودیتهای مدرن صنعتی و IoT هماهنگ باشن.
Zephyr RTOS Cookbook delivers hands-on recipes for tackling real-world challenges in portable, scalable Zephyr application development
Adopting Zephyr RTOS can feel very different from working with bare-metal systems, traditional RTOSes, or embedded Linux. Instead of tightly coupled board-specific code, Zephyr follows a platform-oriented approach built around reusable components, standardized subsystems, and configuration-driven behavior. This shift can be unfamiliar at first, especially for developers moving to Zephyr for real-world products.
Zephyr RTOS Cookbook is a recipe-led guide designed to help you make that transition with confidence. Rather than treating Zephyr as just a kernel, the book shows how to work with it as a complete platform. You’ll learn how to structure projects using West-managed, multi-repo workspaces, enable and customize system features with Kconfig, and describe hardware cleanly using devicetree to keep applications portable across boards.
Each recipe focuses on a practical task you’ll encounter when building Zephyr-based systems, from integrating drivers and subsystems to reasoning about initialization order, device availability, and permissions at runtime. By the end of the book, you’ll be able to develop maintainable Zephyr applications, adapt them to different hardware configurations, and confidently scale your codebase across projects and teams.
This book is for embedded developers and engineers transitioning to Zephyr from traditional RTOSes, bare-metal environments, or embedded Linux. It is aimed at readers with experience in embedded C who want to adopt Zephyr as a scalable platform for building portable systems that can be deployed consistently across multiple boards and development teams.
About the Author
Dr. Roy Jamil is an Embedded Systems Engineer, trainer, and consultant at AC6 specializing in Zephyr RTOS and embedded Linux. He holds a PhD in Embedded Systems focused on asymmetric multiprocessing platforms combining Linux and real-time operating systems. A Zephyr Project Technical Steering Committee (TSC) representative, Roy has delivered Zephyr professional training worldwide since 2022. He supports companies adopting Zephyr and porting new drivers and boards.
Dr. Ayoub Bourjilat is an Embedded Systems Engineer, trainer, and consultant at AC6. He holds a PhD in Embedded Systems and brings hands-on experience across RTOSes, processor architectures, and FPGA platforms. Through training and consulting, he focuses on robust system architecture, scalable Zephyr integration, and building auditable, secure-by-design embedded products aligned with modern industrial and IoT constraints.









