Add HIL test

This commit is contained in:
kalkyl 2023-05-16 11:28:35 +02:00
parent ab63f3832f
commit b950d6d72b

View File

@ -23,6 +23,15 @@ async fn main(_spawner: Spawner) {
let mut flash = embassy_rp::flash::Flash::<_, { 2 * 1024 * 1024 }>::new(p.FLASH);
// Get JEDEC id
let jedec = defmt::unwrap!(flash.jedec_id());
info!("jedec id: 0x{:x}", jedec);
// Get unique id
let mut uid = [0; 8];
defmt::unwrap!(flash.unique_id(&mut uid));
info!("unique id: {:?}", uid);
let mut buf = [0u8; ERASE_SIZE];
defmt::unwrap!(flash.read(ADDR_OFFSET, &mut buf));