How fprime-community/fprime-zephyr works
F Prime Zephyr is a platform-support package that adapts F Prime applications to Zephyr RTOS. Its main workflow is to integrate a deployment with Zephyr, then run it using Zephyr-backed drivers, OS services, and memory/filesystem support. An optional host-side flashing workflow touches a board’s serial port to request bootloader entry before flashing. The README documents the deployment and flashing flows; the source excerpts show selected driver, allocator, and touch-reset behavior, so unsampled subsystem links are omitted.
Main entry points: Platform Zephyr platform support · zephyr_ci.py Zephyr CI plugin · touch.py Touch and flash tool · FprimeZephyrFatFilenameAllocator.cpp FatFs filename pool
Components 22
Platform integration
- Zephyr platform support
cmake/platform/zephyr/Platform - Zephyr CI plugin
ci/src/fprime_zephyr/plugins/zephyr_ci.py - Touch and flash tool
ci/src/fprime_zephyr/touch.py
Device drivers
- ADC driver
fprime-zephyr/Drv/ZephyrADCDriver/ZephyrADCDriver.cpp - GPIO driver
fprime-zephyr/Drv/ZephyrGpioDriver/ZephyrGpioDriver.cpp - I2C driver
fprime-zephyr/Drv/ZephyrI2cDriver/ZephyrI2cDriver.cpp - SPI driver
fprime-zephyr/Drv/ZephyrSpiDriver/ZephyrSpiDriver.cpp - UART driver
fprime-zephyr/Drv/ZephyrUartDriver/ZephyrUartDriver.cpp - Rate driver
fprime-zephyr/Drv/ZephyrRateDriver/ZephyrRateDriver.cpp - LoRa driver
fprime-zephyr/Drv/LoRa/LoRa.cpp
OS services
- Zephyr OS adapters
fprime-zephyr/Os - Filesystem adapters
fprime-zephyr/Os/FileSystem.cpp
Memory and files
- Shared heap allocator
fprime-zephyr/Fw/Types/ZephyrSharedMultiHeapAllocator.cpp - FatFs filename pool
fprime-zephyr/Fs/FatFilenameAllocator/FprimeZephyrFatFilenameAllocator.cpp - Filename pool config
default/zephyr-config/FatFilenameAllocatorCfg.hpp
Time and operations
- Zephyr time service
fprime-zephyr/Svc/ZephyrTime/ZephyrTime.cpp - Fatal handler
fprime-zephyr/Svc/FatalHandler/FatalHandler.cpp - Touch reset service
fprime-zephyr/Svc/ZephyrTouchReset/ZephyrTouchReset.cpp - Bootloader entry
fprime-zephyr/Svc/ZephyrTouchReset/BootloaderEntry.cpp
Other components
- F Prime developer
- F Prime deployment
- Zephyr board
Connections 21
- F Prime developer → F Prime deployment: configures
README.md - F Prime deployment → Zephyr platform support: integrates
README.md - Zephyr platform support → ADC driver: enables
- Zephyr platform support → GPIO driver: enables
- Zephyr platform support → I2C driver: enables
- Zephyr platform support → SPI driver: enables
- Zephyr platform support → UART driver: enables
- Zephyr platform support → Rate driver: enables
- Zephyr platform support → LoRa driver: enables
- Zephyr platform support → Zephyr OS adapters: provides adapters
- Zephyr platform support → Filesystem adapters: provides adapters
- Zephyr platform support → Shared heap allocator: provides allocator
- Zephyr platform support → FatFs filename pool: provides allocator
- Zephyr platform support → Zephyr time service: provides service
- Zephyr platform support → Fatal handler: provides handler
- FatFs filename pool → Filename pool config: reads settings
fprime-zephyr/Fs/FatFilenameAllocator/FprimeZephyrFatFilenameAllocator.cpp - Zephyr CI plugin → Touch and flash tool: calls touch
ci/src/fprime_zephyr/plugins/zephyr_ci.py - Zephyr CI plugin → Zephyr board: launches on
- Touch and flash tool → Zephyr board: touches and flashes
README.md - Zephyr board → Touch reset service: sends baud touch
README.md - Touch reset service → Bootloader entry: invokes entry
fprime-zephyr/Svc/ZephyrTouchReset/ZephyrTouchReset.cpp