From cbedc3a0919633e9e2ce1686affda0ff5028b6e4 Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 7 Aug 2025 01:03:15 +0800 Subject: [PATCH] tweaks for dev environment --- baremetal/Cargo.toml | 19 +++++++++++-------- baremetal/src/repl.rs | 42 ++++++++++++++++++++++++++++++++++++------ 2 files changed, 47 insertions(+), 14 deletions(-) diff --git a/baremetal/Cargo.toml b/baremetal/Cargo.toml index b0336b27a..462f458a2 100644 --- a/baremetal/Cargo.toml +++ b/baremetal/Cargo.toml @@ -22,10 +22,12 @@ artybio = [ "linked_list_allocator", "xous-bio-bdma/artybio", "xous-bio-bdma/baremetal", - "nto-bio" + "nto-bio", ] artyvexii = ["utralib/artyvexii", "linked_list_allocator"] -v0p9 = [] + +# Baochip feature tree below +v0p9 = [] # selects RAM timings for VDD core = 0.9V cramium-soc = [ "utralib/cramium-soc", "linked_list_allocator", @@ -33,14 +35,15 @@ cramium-soc = [ "cramium-api", "v0p9", ] - +# activates BIO test suite nto-bio = [ - "utralib/cramium-soc", - "linked_list_allocator", - "cramium-hal/loader-baosec", - "cramium-api", - "v0p9", + "xous-bio-bdma/bio-mul", + "xous-bio-bdma/baremetal", + "xous-bio-bdma/cramium-soc", + "xous-bio-bdma/tests", ] +# selects features for EVB target (defaults to baosec) +nto-evb = [] verilator-only = [] default = ["artyvexii"] diff --git a/baremetal/src/repl.rs b/baremetal/src/repl.rs index b4f14d4f5..c4519e280 100644 --- a/baremetal/src/repl.rs +++ b/baremetal/src/repl.rs @@ -3,7 +3,7 @@ use alloc::vec::Vec; #[allow(unused_imports)] use utralib::*; -#[cfg(feature = "artybio")] +#[cfg(any(feature = "artybio", feature = "nto-bio"))] use xous_bio_bdma::*; pub struct Repl { @@ -225,6 +225,40 @@ impl Repl { #[cfg(feature = "nto-bio")] "bio" => { + const BIO_TESTS: usize = + // get_id + 1 + // dma + + 4 * 5 + 1 + // clocking modes + // + 4 + 4 + 4 + 4 + 2 + // stack test + + 1 + // hello word, hello multiverse, aclk_tests + + 3 + // fifo_basic + + 1 + // host_fifo_tests + + 1 + // spi_test + + 1 + // i2c_test + + 1 + // complex_i2c_test + + 1 + // fifo_level_tests + + 1 + // fifo_alias_tests + + 1 + // event_aliases + + 1 + // dmareq_test + + 1 + // bio-mul + + 1 + // filter test + + 1; + crate::println!("--- Starting On-Demand BIO Test Suite ---"); // Local counter to replace `self.passing_tests` from the TestRunner let mut passing_tests = 0; @@ -286,11 +320,7 @@ impl Repl { passing_tests += bio_tests::units::fifo_level_tests(); // Final report - crate::println!( - "\n--- BIO Tests Complete: {}/{} passed. ---\n", - passing_tests, - BIO_TESTS_FINAL - ); + crate::println!("\n--- BIO Tests Complete: {}/{} passed. ---\n", passing_tests, BIO_TESTS); } "echo" => { for word in args {