Skip to content

Commit a4b2695

Browse files
committed
STM32H7 CM4: enable ART
1 parent ec945ba commit a4b2695

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

targets/TARGET_STM/TARGET_STM32H7/flash_api.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ int32_t flash_program_page(flash_t *obj, uint32_t address, const uint8_t *data,
148148
#if defined(CORE_CM7)
149149
SCB_CleanInvalidateDCache_by_Addr((uint32_t *)StartAddress, FullSize);
150150
SCB_InvalidateICache();
151+
#else /* CORE_CM4 */
152+
__HAL_ART_ENABLE();
151153
#endif /* CORE_CM7 */
152154
#else /* DUAL_CORE */
153155
SCB_CleanInvalidateDCache_by_Addr((uint32_t *)StartAddress, FullSize);

0 commit comments

Comments
 (0)