From zephyr-skills
Manages persistent storage in Zephyr RTOS using NVS for wear-leveled settings, Devicetree flash partitions, and runtime layout access. For device data persistence and partition config.
npx claudepluginhub beriberikix/zephyr-agent-skills --plugin zephyr-moduleThis skill uses the workspace's default tool permissions.
Implement reliable persistent data handling using Zephyr's storage subsystem and flash management utilities.
Delivers Zephyr RTOS foundations: Embedded C patterns (BIT, CONTAINER_OF), concurrency primitives (mutexes, semaphores, spinlocks), devicetree hardware mapping, and defensive programming. For core logic, drivers, troubleshooting.
Develops firmware for microcontrollers like STM32 and ESP32, implements FreeRTOS RTOS applications, configures peripherals, writes interrupt handlers and DMA transfers, optimizes power consumption in real-time systems.
Delivers complete compilable firmware and peripheral drivers (I²C/SPI/UART/ADC/DMA) for ARM Cortex-M MCUs (Teensy, STM32, nRF52, SAMD) with architecture and concurrency guidance.
Share bugs, ideas, or general feedback.
Implement reliable persistent data handling using Zephyr's storage subsystem and flash management utilities.
Utilize Non-Volatile Storage (NVS) for efficient, wear-leveled data persistence.
nvs_mount(), nvs_read(), nvs_write().Configure and manage flash partitions and hardware page layouts.
fixed-partitions, FLASH_MAP, flash_get_page_info_by_offs().#include <zephyr/storage/nvs/nvs.h>
void save_data(struct nvs_fs *fs, uint16_t id, void *data, size_t len) {
nvs_write(fs, id, data, len);
}
settings subsystem for a standard key-value configuration experience.flash_get_page_layout) rather than assuming hardcoded sector sizes.NVS_ID_* macro values across source/header files.nvs_mount() succeeds on boot for the configured storage partition.nvs_storage.md: Using NVS for data blobs and integers.flash_management.md: Devicetree partitions and page information.nvs_id_lint.py: Duplicate ID detector for NVS namespaces.partition_overlay_template.overlay: Flash partitioning template.