Work in Progress
STM32 Microcontroller and Zephyr RTOS DevelopmentZephyr is an open-source, scalable, and secure real-time operating system (RTOS) designed for modern embedded and connected devices. It supports a wide range of hardware platforms, from small resource-constrained microcontrollers to more capable edge-computing systems.
- Kernel: It manages threads, scheduling, interrupts, synchronization, timing, and other system resources.
- Multithreading: Allows multiple threads to execute concurrently, enabling applications to handle several operations while maintaining responsiveness and real-time behavior.
- Memory Management: Provides mechanisms for efficient and predictable use of limited memory, including dynamic allocation, memory pools, stacks, and memory protection.
Zephyr Workspace
zephyr-sdk-<version>/
zephyr_workspace/
|--.venv/
|--.west/
|--config
|--bootloader/
|--mcuboot/
|--modules/
|--hal/
|--cmsis/ - CMSIS core headers
|--stm32/ - STM32 HAL and LL layers
|--lib/
|--cmsis-dsp/
|--cmsis-nn/
|--fs/
|--fatfs/
|--littlefs/
|--zephyr/
|--tools/
|--apps/ - source of projects
|--project_1
|--project_2
|--build/ - build of projects
|--project_1
|--project_2|--zephyr/
|--arch/
|--boards/
|--cmake/
|--drivers/
|--include/
|--kernel/
|--samples/
|--scripts/
|--soc/
|--subsys/
|--tests/
|--west.yml - manifest
arch/ - CPU architecture support
boards/ - Board definitions, DeviceTree, Kconfig, and default settings
cmake/ - CMake build-system modules
drivers/ - Hardware drivers: GPIO, I2C, SPI, UART, ADC, sensors, etc
include/ - Public Zephyr API headers
kernel/ - Kernel: scheduler, threads, synchronization, timers
samples/ - Example and reference applications
scripts/ - Build, configuration, flashing, testing, and helper tools
soc/ - Vendor- and SoC-specific support
subsys/ - System services: logging, shell, networking, settings, etc
tests/ - Kernel, driver, subsystem, and API tests
Reference
[1] Zephyr Project Documentation
[2] Zephyr API Reference
[3] Samples and Demos
[4] Supported Boards and Shields
Back to top of the page