From d2cbfe983cc852c0d9dd01ea3ca4facd746be658 Mon Sep 17 00:00:00 2001 From: tfx2001 Date: Sun, 21 Jul 2024 13:45:36 +0800 Subject: [PATCH] feat: enable i-cache Signed-off-by: tfx2001 --- src/board/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/board/mod.rs b/src/board/mod.rs index 02e4e55..0a0d3aa 100644 --- a/src/board/mod.rs +++ b/src/board/mod.rs @@ -32,6 +32,8 @@ macro_rules! println { } pub fn board_init() { + hpm_rt::cache::icache_enable(); + let sysctl = pac::SYSCTL; let pllctl = pac::PLLCTL; let clock = unsafe { ClockConfigurator::new(sysctl, pllctl).freeze() };