# Zephyr RTOS workflow demonstrated using west tool and NXP FRDM-MCXN947

> **Key takeaway:** The Zephyr RTOS build system utilizes the west command-line tool and device tree abstractions to enable portable hardware-agnostic code.

**Published:** 2026-11-23T21:01:13+00:00 
**Source:** Adafruit Electronics 
**Category:** open-hardware 
**Canonical URL:** https://fosswire.org/news/zephyr-rtos-workflow-demonstrated-using-west-tool-and-nxp-fr.html 

## Summary
A technical walkthrough details the process of building a basic 'blinky' application using the Zephyr Real-Time Operating System (RTOS) and its meta-tool, west. The demonstration focuses on the NXP FRDM-MCXN947 development board, showcasing how the build system handles hardware-specific configurations.

By leveraging CMake and the west command-line interface, developers can compile the same source code for different hardware targets. The example highlights how Zephyr uses device tree objects to abstract physical hardware, such as GPIO pins, from the application logic.

## Zephyr build mechanics and hardware abstraction
- **Build Orchestration:** The west command-line tool manages the Zephyr build process, including board selection via target names and support for multi-core targets using the --all-targets flag.
- **Hardware Abstraction Layer:** The application utilizes device tree objects, such as 'led0', and API calls like gpio_pin_toggle_dt() to interact with hardware without hardcoding specific pin numbers in the C source.
- **Build Configuration:** The workflow relies on a CMake-based structure that loads the Zephyr package to generate the final .elf binary within a dedicated build folder.
- **Portability Demonstration:** The same 'blinky' source code can be recompiled for different hardware, such as the NXP FRDM-K22F, demonstrating the effectiveness of the Zephyr hardware abstraction layer across different MCU architectures.

## Why it matters
This workflow illustrates the importance of standardized build tools and device tree abstractions in the embedded open-source ecosystem. It shows how developers can write portable firmware that remains functional across diverse SoC architectures, reducing the effort required to port code to new hardware.