From f0ef2b86cee6b44e801eb80ba301888a608fdd76 Mon Sep 17 00:00:00 2001 From: Ian McIntyre Date: Mon, 26 Oct 2026 17:53:21 -0400 Subject: Add ECC stress test for 1170EVK testing A little firmware that you can run on your 11xx with ECC RAM active. If I'm doing the preloading correctly and considering speculative reads into unused memory, this test should pass. Right now, it definitely does not pass, since the __pre_init only (maybe) zeros the program sections. --- board/src/imxrt1170evk_cm7.rs | 6 ++++++ board/src/lib.rs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'board') diff --git a/board/src/imxrt1170evk_cm7.rs b/board/src/imxrt1170evk_cm7.rs index f1a72d7..089c9e8 100644 --- a/board/src/imxrt1170evk_cm7.rs +++ b/board/src/imxrt1170evk_cm7.rs @@ -14,6 +14,12 @@ pub mod rtic_support { #[allow(non_snake_case)] // For RTIC trickery... pub mod Interrupt { pub const PIT: crate::ral::Interrupt = crate::ral::Interrupt::PIT1; + pub const FLEXRAM: crate::ral::Interrupt = crate::ral::Interrupt::FLEXRAM; + pub const FLEXRAM_ECC: crate::ral::Interrupt = crate::ral::Interrupt::FLEXRAM_ECC; + pub const MECC1_INT: crate::ral::Interrupt = crate::ral::Interrupt::MECC1_INT; + pub const MECC1_FATAL_INT: crate::ral::Interrupt = crate::ral::Interrupt::MECC1_FATAL_INT; + pub const MECC2_INT: crate::ral::Interrupt = crate::ral::Interrupt::MECC2_INT; + pub const MECC2_FATAL_INT: crate::ral::Interrupt = crate::ral::Interrupt::MECC2_FATAL_INT; } pub use Interrupt as interrupt; } diff --git a/board/src/lib.rs b/board/src/lib.rs index ebc76ad..fa2afcd 100644 --- a/board/src/lib.rs +++ b/board/src/lib.rs @@ -1,7 +1,7 @@ //! A very simple, multi-board BSP for imxrt-rt-support examples. #![no_std] -use imxrt_ral as ral; +pub use imxrt_ral as ral; cfg_if::cfg_if! { if #[cfg(feature = "teensy4")] { -- cgit v1.2.3