Merge pull request #3217 from samueltardieu/f1-flash-bsy
embassy-stm32: wait for BSY flag to clear before flashing
This commit is contained in:
commit
4e5a646f8b
1 changed files with 3 additions and 1 deletions
|
@ -42,9 +42,11 @@ pub(crate) unsafe fn blocking_write(start_address: u32, buf: &[u8; WRITE_SIZE])
|
|||
|
||||
// prevents parallelism errors
|
||||
fence(Ordering::SeqCst);
|
||||
|
||||
wait_ready_blocking()?;
|
||||
}
|
||||
|
||||
wait_ready_blocking()
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub(crate) unsafe fn blocking_erase_sector(sector: &FlashSector) -> Result<(), Error> {
|
||||
|
|
Loading…
Add table
Reference in a new issue