Buffer data to be written to flash in ram if it does not already reside in ram

This commit is contained in:
Mathias
2022-10-26 14:47:32 +02:00
parent 80e58426fc
commit 1669e39565
2 changed files with 27 additions and 8 deletions

View File

@ -18,7 +18,6 @@ async fn main(_spawner: Spawner) {
info!("Hello World!");
let mut flash = embassy_rp::flash::Flash::<_, FLASH_SIZE>::new(p.FLASH);
erase_write_sector(&mut flash, 0x00);
multiwrite_bytes(&mut flash, ERASE_SIZE as u32);