Skip to content
Commit a04de789 authored by Thomas Stranger's avatar Thomas Stranger Committed by Christopher Friedt
Browse files

drivers: flash: stm32: wait for CFGBSY & BSY2 in wait_flash_idle



Some series (namely g0, u5, wb, wl, ?) use CFGBSY to indicate
that FLASH_CR is not ready to be modfied.

This commit adds this flag additionally to other the flash busy flags,
in flash_stm32_wait_flash_idle such that the driver waits before
trying to modify PG, PNB[6:0], PER, and MER bits in FLASH_CR.

Additionally, dual bank variants of STM32G0 have a seperarate BSY2 flag
for flash bank two.
Until now this was not yet checked in flash_stm32_wait_flash_idle.

Signed-off-by: default avatarThomas Stranger <thomas.stranger@outlook.com>
parent 9b1dfd65
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment