diff options
| -rw-r--r-- | embassy-stm32/src/flash/f1f3.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/embassy-stm32/src/flash/f1f3.rs b/embassy-stm32/src/flash/f1f3.rs index e66842e31..ff7f810ea 100644 --- a/embassy-stm32/src/flash/f1f3.rs +++ b/embassy-stm32/src/flash/f1f3.rs | |||
| @@ -42,9 +42,11 @@ pub(crate) unsafe fn blocking_write(start_address: u32, buf: &[u8; WRITE_SIZE]) | |||
| 42 | 42 | ||
| 43 | // prevents parallelism errors | 43 | // prevents parallelism errors |
| 44 | fence(Ordering::SeqCst); | 44 | fence(Ordering::SeqCst); |
| 45 | |||
| 46 | wait_ready_blocking()?; | ||
| 45 | } | 47 | } |
| 46 | 48 | ||
| 47 | wait_ready_blocking() | 49 | Ok(()) |
| 48 | } | 50 | } |
| 49 | 51 | ||
| 50 | pub(crate) unsafe fn blocking_erase_sector(sector: &FlashSector) -> Result<(), Error> { | 52 | pub(crate) unsafe fn blocking_erase_sector(sector: &FlashSector) -> Result<(), Error> { |
