From f94a9c7d9d776917a1667c485fa60057b07efd62 Mon Sep 17 00:00:00 2001 From: Kevin Gillespie Date: Tue, 17 Dec 2024 09:39:55 -0600 Subject: [PATCH 1/3] Enabling instruction cache. --- Libraries/zephyr/MAX/Source/MAX32657/max32xxx_system.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Libraries/zephyr/MAX/Source/MAX32657/max32xxx_system.c b/Libraries/zephyr/MAX/Source/MAX32657/max32xxx_system.c index 9998ccfb0b8..a5dcd6fbbf7 100644 --- a/Libraries/zephyr/MAX/Source/MAX32657/max32xxx_system.c +++ b/Libraries/zephyr/MAX/Source/MAX32657/max32xxx_system.c @@ -17,8 +17,11 @@ ******************************************************************************/ #include "max32657.h" +#include "icc.h" /* * This function is called during boot up. */ -void max32xx_system_init(void) {} +void max32xx_system_init(void) { + MXC_ICC_Enable(); +} From fb2ac5529f099c94a551fdda547c4a3b7fbca2cd Mon Sep 17 00:00:00 2001 From: Kevin Gillespie Date: Tue, 17 Dec 2024 11:21:02 -0600 Subject: [PATCH 2/3] Fixing formatting. --- Libraries/zephyr/MAX/Source/MAX32657/max32xxx_system.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Libraries/zephyr/MAX/Source/MAX32657/max32xxx_system.c b/Libraries/zephyr/MAX/Source/MAX32657/max32xxx_system.c index a5dcd6fbbf7..7968d4aa042 100644 --- a/Libraries/zephyr/MAX/Source/MAX32657/max32xxx_system.c +++ b/Libraries/zephyr/MAX/Source/MAX32657/max32xxx_system.c @@ -22,6 +22,7 @@ /* * This function is called during boot up. */ -void max32xx_system_init(void) { +void max32xx_system_init(void) +{ MXC_ICC_Enable(); } From 44bbc1f6094f1882645e0ea0621a77e90c5ebd52 Mon Sep 17 00:00:00 2001 From: Kevin Gillespie Date: Tue, 17 Dec 2024 16:56:38 -0600 Subject: [PATCH 3/3] Adding comment. --- Libraries/zephyr/MAX/Source/MAX32657/max32xxx_system.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Libraries/zephyr/MAX/Source/MAX32657/max32xxx_system.c b/Libraries/zephyr/MAX/Source/MAX32657/max32xxx_system.c index 7968d4aa042..c7737976847 100644 --- a/Libraries/zephyr/MAX/Source/MAX32657/max32xxx_system.c +++ b/Libraries/zephyr/MAX/Source/MAX32657/max32xxx_system.c @@ -24,5 +24,6 @@ */ void max32xx_system_init(void) { + /* Enable instruction cache */ MXC_ICC_Enable(); }