Skip to content

Commit

Permalink
Merge pull request #3744 from mrodgers-witekio/fix-stm32f3xx-flash-erase
Browse files Browse the repository at this point in the history
stm32: flash: fix flash erase on stm32f3xx series
  • Loading branch information
Dirbaio authored Jan 8, 2025
2 parents 06869e2 + 844d3b3 commit 6ec1082
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions embassy-stm32/src/flash/f1f3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ pub(crate) unsafe fn blocking_erase_sector(sector: &FlashSector) -> Result<(), E
// BSY bit, because there is a one-cycle delay between
// setting the STRT bit and the BSY bit being asserted
// by hardware. See STM32F105xx, STM32F107xx device errata,
// section 2.2.8
#[cfg(stm32f1)]
// section 2.2.8, and also RM0316 Rev 10 section 4.2.3 for
// STM32F3xx series.
pac::FLASH.cr().read();

let mut ret: Result<(), Error> = wait_ready_blocking();
Expand Down

0 comments on commit 6ec1082

Please sign in to comment.