diff --git a/embassy-stm32/src/flash/common.rs b/embassy-stm32/src/flash/common.rs index 8ec4bb2a16..0290bf1fd7 100644 --- a/embassy-stm32/src/flash/common.rs +++ b/embassy-stm32/src/flash/common.rs @@ -244,6 +244,8 @@ impl embedded_storage::nor_flash::NorFlash for Flash<'_, MODE> { } } +impl embedded_storage::nor_flash::MultiwriteNorFlash for Flash<'_, MODE> {} + foreach_flash_region! { ($type_name:ident, $write_size:literal, $erase_size:literal) => { impl crate::_generated::flash_regions::$type_name<'_, MODE> { @@ -302,5 +304,8 @@ foreach_flash_region! { self.blocking_erase(from, to) } } + + impl embedded_storage::nor_flash::MultiwriteNorFlash for crate::_generated::flash_regions::$type_name<'_, Blocking> {} + }; }