Add HIL test
This commit is contained in:
parent
ab63f3832f
commit
b950d6d72b
1 changed files with 9 additions and 0 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue