[BEETLE] Disable fcache stats if uvisor is defined

This patch disables the fcache stats into mbed_sdk_init if uvisor is
defined in order to prevent MEMMANAGEMENT faults during boot.

Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
pull/2518/head
Vincenzo Frascino 2016-07-22 15:27:56 +01:00
parent b4d1cfe17f
commit 788ebf7fb5
1 changed files with 2 additions and 0 deletions

View File

@ -23,8 +23,10 @@ void mbed_sdk_init(void) {
EFlash_DriverInitialize();
EFlash_ClockConfig();
#if !defined(FEATURE_UVISOR) || !defined(TARGET_UVISOR_SUPPORTED)
/* Enable Flash Cache Stats */
FCache_DriverInitialize();
FCache_Enable(1);
FCache_Invalidate();
#endif
}