This commit is contained in:
2024-09-27 19:55:16 +02:00
parent a1a5156caf
commit ea35221d41
4 changed files with 13 additions and 17 deletions

View File

@ -1,10 +1,6 @@
//! Example application which interfaces with the boot EEPROM.
#![no_main]
#![no_std]
use core::fmt::write;
use cortex_m::{asm, register::control::read};
use cortex_m_rt::entry;
use embedded_hal::delay::DelayNs;
use panic_rtt_target as _;
@ -51,7 +47,7 @@ fn main() -> ! {
nvm.read(PAGE_SIZE - 2, &mut read_buf[0..8]).unwrap();
assert_eq!(&read_buf[0..8], &write_buf[0..8]);
nvm.write(0, &orig_content);
nvm.write(0, &orig_content).unwrap();
loop {
timer.delay_ms(500);
}