diff options
| author | Ian McIntyre <me@mciantyre.dev> | 2026-02-01 11:39:58 -0500 |
|---|---|---|
| committer | Ian McIntyre <me@mciantyre.dev> | 2026-02-01 11:48:15 -0500 |
| commit | e77962985d4610c2dbcf3bb9bc266ee023e57e88 (patch) | |
| tree | 83ed5306005e10b958c99e16aff61daf014d33fa /imxrt1010evk/examples/smoke.rs | |
| parent | 86978556cfd7fd1f82252c1bee19a6a1f1957b08 (diff) | |
Remove custom smoke tests for target-gen test
Diffstat (limited to 'imxrt1010evk/examples/smoke.rs')
| -rw-r--r-- | imxrt1010evk/examples/smoke.rs | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/imxrt1010evk/examples/smoke.rs b/imxrt1010evk/examples/smoke.rs deleted file mode 100644 index 820d610..0000000 --- a/imxrt1010evk/examples/smoke.rs +++ /dev/null @@ -1,36 +0,0 @@ -#![no_main] -#![no_std] - -use defmt_rtt as _; -use imxrt1010evk::{self, Algorithm}; -use panic_probe as _; - -const LAST_SECTOR: usize = Algorithm::flash_size_bytes() - Algorithm::sector_size_bytes(); - -#[imxrt_rt::entry] -fn main() -> ! { - for _ in 0..5 { - let mut at25sf128 = Algorithm::initialize(); - - let mut sector = [0_u8; Algorithm::sector_size_bytes()]; - at25sf128.flash_read(0x400, &mut sector[..4]); - let tag = u32::from_le_bytes(sector[..4].try_into().unwrap()); - defmt::assert!(0x42464346 == tag, "{=u32:#010X}", tag); - - at25sf128.flash_erase_sector(LAST_SECTOR + 256); - - sector.fill(0); - at25sf128.flash_write(LAST_SECTOR, §or); - - sector.fill(u8::MAX); - at25sf128.flash_read(LAST_SECTOR, &mut sector); - defmt::assert!(sector.iter().all(|byte| *byte == 0)); - - at25sf128.flash_erase_sector(LAST_SECTOR + 123); - - at25sf128.flash_read(LAST_SECTOR, &mut sector); - defmt::assert!(sector.iter().all(|byte| *byte == u8::MAX)); - } - defmt::println!("Pass"); - loop {} -} |
