Check for a Cortex-M7 before calling cache functions
@@ -219,8 +219,11 @@ static void invalidate_cache(void)
{
lv_disp_t * disp = _lv_refr_get_disp_refreshing();
if(disp->driver.clean_dcache_cb) disp->driver.clean_dcache_cb(&disp->driver);
- else
+ else {
+#if __CORTEX_M >= 0x07
SCB_CleanInvalidateDCache();
+#endif
+ }
}
static void dma2d_wait(void)
