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)

zephyr (zephyrproject-rtos)Embedded & firmwareCrash or hard errorMedium confidence

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

  1. 1zephyrproject-rtos/zephyr Issue #127852: drivers: flash: stm32wba: flash manager mutex is released from a different thread, causing deadlockgithub.com

More recurring errors in zephyr (zephyrproject-rtos)

See all 3 zephyr (zephyrproject-rtos) errors

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.