Skip to content

Commit 002ca34

Browse files
authored
Merge pull request hathach#1898 from ccrome/fix-imx1011
Turn data cache on
2 parents 86c416d + ec26c61 commit 002ca34

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

hw/bsp/imxrt/family.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ const uint8_t dcd_data[] = { 0x00 };
5555

5656
void board_init(void)
5757
{
58+
// make sure the dcache is on.
59+
#if defined(__DCACHE_PRESENT) && __DCACHE_PRESENT
60+
if (SCB_CCR_DC_Msk != (SCB_CCR_DC_Msk & SCB->CCR))
61+
SCB_EnableDCache();
62+
#endif
63+
5864
// Init clock
5965
BOARD_BootClockRUN();
6066
SystemCoreClockUpdate();

0 commit comments

Comments
 (0)