mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 22:43:50 +01:00
stm32_common/flashpage: _wait_for_pending_operations() before write
This commit is contained in:
parent
7f675e9ca9
commit
24ea728007
@ -175,6 +175,9 @@ void flashpage_write_raw(void *target_addr, const void *data, size_t len)
|
||||
/* unlock the flash module */
|
||||
_unlock_flash();
|
||||
|
||||
/* make sure no flash operation is ongoing */
|
||||
_wait_for_pending_operations();
|
||||
|
||||
DEBUG("[flashpage_raw] write: now writing the data\n");
|
||||
#if defined(CPU_FAM_STM32F0) || defined(CPU_FAM_STM32F1) || \
|
||||
defined(CPU_FAM_STM32F3) || defined(CPU_FAM_STM32L4)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user