Commit 64650775 authored by Fabio Utzig's avatar Fabio Utzig Committed by Fabio Utzig
Browse files

Add unsupported flash layout

This adds an external SPI flash that uses a larger sector size than
the internal flash. Currently this breaks the tests but it's being
added here to trigger a CI fail that will be fixed by adding support
for this feature in a subsequent commit.

Signed-off-by: default avatarFabio Utzig <utzig@apache.org>
parent afb2bc90
Loading
Loading
Loading
Loading
+1 −1
Changes for sim/src/lib.rs: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -388,7 +388,7 @@ pub fn make_device(device: DeviceName, align: u8, erased_val: u8) -> (SimFlashMa
            // Simulate nrf52840 with external SPI flash. The external SPI flash
            // has a larger sector size so for now store scratch on that flash.
            let flash0 = SimFlash::new(vec![4096; 128], align as usize, erased_val);
            let flash1 = SimFlash::new(vec![4096; 128], align as usize, erased_val);
            let flash1 = SimFlash::new(vec![8192; 64], align as usize, erased_val);

            let mut areadesc = AreaDesc::new();
            areadesc.add_flash_sectors(0, &flash0);