STM32H7 CM4: enable ART

pull/14822/head
jeromecoutant 2021-06-23 16:28:22 +02:00
parent ec945ba990
commit a4b2695d15
1 changed files with 2 additions and 0 deletions

View File

@ -148,6 +148,8 @@ int32_t flash_program_page(flash_t *obj, uint32_t address, const uint8_t *data,
#if defined(CORE_CM7)
SCB_CleanInvalidateDCache_by_Addr((uint32_t *)StartAddress, FullSize);
SCB_InvalidateICache();
#else /* CORE_CM4 */
__HAL_ART_ENABLE();
#endif /* CORE_CM7 */
#else /* DUAL_CORE */
SCB_CleanInvalidateDCache_by_Addr((uint32_t *)StartAddress, FullSize);