Zephyr flash driver for STM32WBA. The ST flash manager takes its mutex in the writing thread and releases it from a work queue. A Zephyr k_mutex can only be unlocked by its owner, so the unlock returns -EPERM, and the flash manager ignores the return value. The first thread to write flash after boot keeps the lock for good. Every other thread that writes or erases flash blocks forever while holding the flash driver semaphore. With Bluetooth and settings both writing flash, the system stalls.
Crash or hard error reported against zephyr (zephyrproject-rtos)
What engineers report
A crash or hard error reported against zephyr (zephyrproject-rtos): errors out, crashes, hangs or fails to build or install.
Recorded mode: validation / hang
Analyst note
From the Grok pain-radar digests, Nov 28-Dec 2 2026 (Nov 28 8:41 PM ET through Dec 2 9:41 PM ET digests). Verified live 2026-12-03: issue/PR read; title and state confirmed.
What it costs a team
Modeled annual cost
$30,000
For a team of 5
Prototype delay
3 days
Modeled schedule slip per occurrence
Time lost
240 min
Per engineer per month, about 1 incidents
How the cost is modeled
240 min/month × 5 engineers × 12 months = 240 hours × $125/hour = $30,000
A modeled estimate with medium confidence. Swap in your own team size and loaded rate to size it for your team.
Engineering tools that address it
No engineering tool profile lists this error yet. Browse tools that connect to zephyr (zephyrproject-rtos).
Evidence
More recurring errors in zephyr (zephyrproject-rtos)
- sntp_simple returns -ETIMEDOUT long before the caller's timeout after a stale response, because the code compares against positive ETIMEDOUT; reproduced on an ESP32-S3 station right after it joins Wi-Fi.Embedded & firmware · impact 66
- Zephyr's STM32 camera driver handles none of the vendor HAL's error callbacks. The HAL defaults are empty and it turns off the overrun interrupt after the first hit. A frame torn by an overrun comes back to the app with its full byte count, so it looks complete. Later overruns aren't raised at all. The only way to find out today is to define the HAL's weak callback yourself, which only one module per build can do.Embedded & firmware · impact 66
Sourced from public community reports. Costs and delays are modeled estimates, not measurements. Know a better source or a fix? Tell us at hello@productflo.io.