Zephyr RTOS Cookbook delivers hands-on recipes for tackling real-world challenges in portable, scalable Zephyr application development
Free with your book: DRM-free PDF version + access to Packt's next-gen Reader*
Key Features:
- Build and organize Zephyr applications using West to enable clean, reproducible, multi-repo workflows
- Configure features with Kconfig and describe hardware with DeviceTree
- Develop portable, scalable systems for industrial and IoT devices using Zephyr subsystems and the device driver model
Book Description:
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.
What You Will Learn:
- Set up a reproducible Zephyr development environment and West workspace
- Structure apps and modules
- Navigate the Zephyr build flow and inspect key generated outputs
- Configure features with Kconfig
- Describe and customize hardware using devicetree
- Use common subsystems: GPIO, I2C, ADC, logging, and shell
- Apply user mode to enforce security
- Control peripherals from applications using drivers
Who this book is for:
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.
Table of Contents
- Introducing the Zephyr Project
- Structuring and Building Zephyr Applications
- Configuring Zephyr Applications with Kconfig
- Using Devicetree to Describe Hardware
- Exploring Zephyr's Device Driver Model
- System Initialization and Multithreading
- Working with Zephyr Subsystems
- User Mode in Zephyr
外文書商品之書封,為出版社提供之樣本。實際出貨商品,以出版社所提供之現有版本為主。部份書籍,因出版社供應狀況特殊,匯率將依實際狀況做調整。
無庫存之商品,在您完成訂單程序之後,將以空運的方式為你下單調貨。為了縮短等待的時間,建議您將外文書與其他商品分開下單,以獲得最快的取貨速度,平均調貨時間為1~2個月。
為了保護您的權益,「三民網路書店」提供會員七日商品鑑賞期(收到商品為起始日)。
若要辦理退貨,請在商品鑑賞期內寄回,且商品必須是全新狀態與完整包裝(商品、附件、發票、隨貨贈品等)否則恕不接受退貨。