Commit aaf35701 authored by Yuri Tikhonov's avatar Yuri Tikhonov

RT106081. STM32-SOM: add barriers on eNVM MPU region ctrl

Otherwise, 'saveenv' hangs if we have env in eNVM (with D/I caches
ON).
Signed-off-by: default avatarYuri Tikhonov <yur@emcraft.com>
parent f6682ef5
......@@ -139,6 +139,9 @@ static void stm32f7_envm_mpu_cfg(u8 dev, u8 mpu_run)
if (mpu_run)
cortex_m3_mpu_enable(1);
__asm__ volatile("dsb");
__asm__ volatile("isb");
}
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment