Skip to content

Commit 788ebf7

Browse files
committed
[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>
1 parent b4d1cfe commit 788ebf7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/mbed_sdk_init.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ void mbed_sdk_init(void) {
2323
EFlash_DriverInitialize();
2424
EFlash_ClockConfig();
2525

26+
#if !defined(FEATURE_UVISOR) || !defined(TARGET_UVISOR_SUPPORTED)
2627
/* Enable Flash Cache Stats */
2728
FCache_DriverInitialize();
2829
FCache_Enable(1);
2930
FCache_Invalidate();
31+
#endif
3032
}

0 commit comments

Comments
 (0)