mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
update flash test routine to remove write flag request
This commit is contained in:
parent
70975fbff3
commit
dd5e19878c
2 changed files with 3 additions and 3 deletions
|
|
@ -56,4 +56,4 @@ autobasis = ["rand_chacha", "rand"]
|
||||||
modal-testing = ["ux-api", "modals/modal-testing"]
|
modal-testing = ["ux-api", "modals/modal-testing"]
|
||||||
test-scrollbars = []
|
test-scrollbars = []
|
||||||
test-flash = []
|
test-flash = []
|
||||||
default = ["test-flash"]
|
default = []
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ fn main() {
|
||||||
None,
|
None,
|
||||||
xous::MemoryAddress::new(xous::arch::MMAP_VIRT_BASE),
|
xous::MemoryAddress::new(xous::arch::MMAP_VIRT_BASE),
|
||||||
cramium_hal::board::SPINOR_LEN as usize,
|
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");
|
.expect("couldn't map spi range");
|
||||||
log::info!("spimap: {:x?}", spimap);
|
log::info!("spimap: {:x?}", spimap);
|
||||||
|
|
@ -42,7 +42,7 @@ fn main() {
|
||||||
*d = 128u8 - i as u8;
|
*d = 128u8 - i as u8;
|
||||||
}
|
}
|
||||||
swapper
|
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");
|
.expect("couldn't write page");
|
||||||
log::info!("spislice read 8M (again): {:x?}", &spislice[test_start..test_start + 16]);
|
log::info!("spislice read 8M (again): {:x?}", &spislice[test_start..test_start + 16]);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue