From 407e5714792cf9280eeea1a60e66db69924f114c Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 16 Aug 2015 08:33:01 +0000 Subject: Moved cache initialization into startup files. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8220 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/STM32F7xx/hal_lld.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'os/hal') diff --git a/os/hal/ports/STM32/STM32F7xx/hal_lld.c b/os/hal/ports/STM32/STM32F7xx/hal_lld.c index e5f74ed8c..4ff0a33b5 100644 --- a/os/hal/ports/STM32/STM32F7xx/hal_lld.c +++ b/os/hal/ports/STM32/STM32F7xx/hal_lld.c @@ -146,6 +146,10 @@ void hal_lld_init(void) { MPU_RASR_SIZE_512K | MPU_RASR_ENABLE); mpuEnable(MPU_CTRL_PRIVDEFENA); + + /* Invalidating data cache to make sure that the MPU settings are taken + immediately.*/ + SCB_InvalidateDCache(); #endif #endif -- cgit v1.2.3