From 6614cbe2a490c6c3177290f6341c200d540d3704 Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 25 Nov 2025 00:14:01 +0800 Subject: [PATCH] force bootwait on in the dabao factory test --- baremetal/src/platform/bao1x/dabao_selftest.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/baremetal/src/platform/bao1x/dabao_selftest.rs b/baremetal/src/platform/bao1x/dabao_selftest.rs index 5c11680c7..efe52d72c 100644 --- a/baremetal/src/platform/bao1x/dabao_selftest.rs +++ b/baremetal/src/platform/bao1x/dabao_selftest.rs @@ -5,6 +5,13 @@ use xous_bio_bdma::*; const DABAO_PINMASK: u32 = 0b0001_1111_1000_1111_0111_1000_0011_1110; // 0x1F8F783E; pub fn dabao_selftest() { + let one_way = bao1x_hal::acram::OneWayCounter::new(); + while one_way.get_decoded::().expect("couldn't fetch flag") + != bao1x_api::BootWaitCoding::Enable + { + one_way.inc_coded::().unwrap(); + } + let mut bio_ss = BioSharedState::new(); let iox = bao1x_hal::iox::Iox::new(utra::iox::HW_IOX_BASE as *mut u32); iox.set_ports_from_bio_bitmask(DABAO_PINMASK);