mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-09 07:26:45 +00:00
Most drivers make use of the HW semaphore (see `stm32_gpio.c`), but the HSEM clock isn't currently setup on the MCU side. This means we rely on the MPU to enable this clock, which is an unsafe bet: the OS running on the MPU may not have support for HSEM, or it might enter sleep state, which will disable the clock. As a consequence, firmwares loaded from the MPU running this OS will block on the first `z_stm32_hsem_lock()` call. As it is required to run anything on the MCU core, we shouldn't assume the HSEM clock is already active when booting and enable it in the SoC init, the same way it is done for the STM32H7. Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com> |
||
---|---|---|
.. | ||
arc | ||
arm | ||
nios2 | ||
posix | ||
riscv | ||
x86 | ||
xtensa | ||
Kconfig |