From b950d6d72bf92f1943f885ce700685fedf4b6cd9 Mon Sep 17 00:00:00 2001 From: kalkyl Date: Tue, 16 May 2023 11:28:35 +0200 Subject: [PATCH] Add HIL test --- tests/rp/src/bin/flash.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/rp/src/bin/flash.rs b/tests/rp/src/bin/flash.rs index 897e3804..00bebe2b 100644 --- a/tests/rp/src/bin/flash.rs +++ b/tests/rp/src/bin/flash.rs @@ -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));