F7: enable ICache and DCache

This commit is contained in:
Daniel Fekete 2017-05-04 17:50:15 +02:00
parent e436878594
commit 44170fe61d
1 changed files with 5 additions and 0 deletions

View File

@ -35,6 +35,11 @@ int main(void)
//Used by FreeRTOS, see http://www.freertos.org/RTOS-Cortex-M3-M4.html
#ifdef NVIC_PRIORITYGROUP_4
HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
#endif
#ifdef STM32F7
SCB_EnableICache();
SCB_EnableDCache();
#endif
init();