diff --git a/nrf-hal-common/src/nvmc.rs b/nrf-hal-common/src/nvmc.rs index 2667063f..d349d79d 100644 --- a/nrf-hal-common/src/nvmc.rs +++ b/nrf-hal-common/src/nvmc.rs @@ -183,6 +183,21 @@ where } } +// Only nRF52 boards have been checked. There are 2 things to note: +// +// 1. The nRF52832 doesn't support 2 writes per word. Instead it supports 181 writes per block, +// where a block is 128 words. So on average it's a bit less than 2 writes per word, and thus we +// can't implement MultiwriteNorFlash. +// +// 2. The nRF52820 supports 2 writes per word but doesn't have an associated feature. +#[cfg(any( + feature = "52810", + feature = "52811", + feature = "52833", + feature = "52840", +))] +impl embedded_storage::nor_flash::MultiwriteNorFlash for Nvmc {} + pub trait Instance: Deref + sealed::Sealed {} impl Instance for NVMC {}