We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e0d1b8 commit 630318aCopy full SHA for 630318a
src/modm/platform/core/cortex/startup.c.in
@@ -98,10 +98,10 @@ void __modm_startup(void)
98
%% if enable_icache
99
SCB_EnableICache();
100
%% elif has_icache
101
- SCB_DisableICache();
+ if (SCB->CCR & SCB_CCR_IC_Msk) SCB_DisableICache();
102
%% endif
103
%% if has_dcache
104
- SCB_DisableDCache();
+ if (SCB->CCR & SCB_CCR_DC_Msk) SCB_DisableDCache();
105
106
%#
107
// Copy and zero all internal memory
0 commit comments