update flash test routine to remove write flag request

This commit is contained in:
bunnie 2025-05-21 10:22:27 +08:00
parent 70975fbff3
commit dd5e19878c
2 changed files with 3 additions and 3 deletions

View file

@ -56,4 +56,4 @@ autobasis = ["rand_chacha", "rand"]
modal-testing = ["ux-api", "modals/modal-testing"]
test-scrollbars = []
test-flash = []
default = ["test-flash"]
default = []

View file

@ -24,7 +24,7 @@ fn main() {
None,
xous::MemoryAddress::new(xous::arch::MMAP_VIRT_BASE),
cramium_hal::board::SPINOR_LEN as usize,
xous::MemoryFlags::R | xous::MemoryFlags::W | xous::MemoryFlags::VIRT,
xous::MemoryFlags::R | xous::MemoryFlags::VIRT,
)
.expect("couldn't map spi range");
log::info!("spimap: {:x?}", spimap);
@ -42,7 +42,7 @@ fn main() {
*d = 128u8 - i as u8;
}
swapper
.write_page(spislice[test_start..test_start + 32].as_ptr() as usize, fp)
.write_page(spislice[test_start..test_start + 32].as_ptr() as usize, &fp)
.expect("couldn't write page");
log::info!("spislice read 8M (again): {:x?}", &spislice[test_start..test_start + 16]);