File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
connectivity/drivers/emac/TARGET_STM/TARGET_STM32H7 Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,10 @@ void HAL_ETH_MspInit(ETH_HandleTypeDef *heth)
6666
6767#if !(defined(DUAL_CORE ) && defined(CORE_CM4 ))
6868 /* Disable DCache for STM32H7 family */
69+ core_util_critical_section_enter ();
70+ SCB_CleanInvalidateDCache ();
6971 SCB_DisableDCache ();
72+ core_util_critical_section_exit ();
7073#endif
7174
7275 /* GPIO Ports Clock Enable */
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ void HAL_ETH_MspInit(ETH_HandleTypeDef *heth)
6868#if !(defined(DUAL_CORE ) && defined(CORE_CM4 ))
6969 /* Disable DCache for STM32H7 family */
7070 core_util_critical_section_enter ();
71+ SCB_CleanInvalidateDCache ();
7172 SCB_DisableDCache ();
7273 core_util_critical_section_exit ();
7374#endif
You can’t perform that action at this time.
0 commit comments