Skip to content

Commit 7c492a8

Browse files
kevin-gillespiepetejohanson-adi
authored andcommitted
Disabling cache read buffer. (#438)
* Disabling cache read buffer. * clang-format bot reformatting. --------- Co-authored-by: kevin-gillespie <[email protected]> MSDK-Commit: a6f724c1fff9af68fe80d3a8b27cf709e162447f
1 parent c628709 commit 7c492a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

MAX/Libraries/CMSIS/Device/Maxim/MAX32690/Source/system_max32690.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ __weak void SystemInit(void)
128128
SCB->VTOR = (uint32_t)__isr_vector;
129129
#endif /* __CC_ARM || __GNUC__ */
130130

131+
*(volatile uint32_t *)0x40000c00 = 1; // Enable test mode
132+
*(volatile uint32_t *)0x4000040c = (1 << 6); // Disable cache read buffer
133+
*(volatile uint32_t *)0x40000c00 = 0; // Disable test mode
134+
131135
MXC_ICC_Enable(MXC_ICC0);
132136
MXC_ICC_Disable(MXC_ICC0);
133137
MXC_ICC_Enable(MXC_ICC0);

0 commit comments

Comments
 (0)