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)
66
66
67
67
#if !(defined(DUAL_CORE ) && defined(CORE_CM4 ))
68
68
/* Disable DCache for STM32H7 family */
69
+ core_util_critical_section_enter ();
70
+ SCB_CleanInvalidateDCache ();
69
71
SCB_DisableDCache ();
72
+ core_util_critical_section_exit ();
70
73
#endif
71
74
72
75
/* 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)
68
68
#if !(defined(DUAL_CORE ) && defined(CORE_CM4 ))
69
69
/* Disable DCache for STM32H7 family */
70
70
core_util_critical_section_enter ();
71
+ SCB_CleanInvalidateDCache ();
71
72
SCB_DisableDCache ();
72
73
core_util_critical_section_exit ();
73
74
#endif
You can’t perform that action at this time.
0 commit comments