DISCO_H747I_CM4 compilation issue

SCB_DisableDCache() function is only available for M7 core.
pull/12415/head
jeromecoutant 2020-02-11 17:59:31 +01:00
parent 69a7d67699
commit 0c8add6e28
1 changed files with 2 additions and 0 deletions

View File

@ -64,8 +64,10 @@ void HAL_ETH_MspInit(ETH_HandleTypeDef *heth)
{
GPIO_InitTypeDef GPIO_InitStruct;
if (heth->Instance == ETH) {
#if defined(CORE_CM7)
/* Disable DCache for STM32H7 family */
SCB_DisableDCache();
#endif
/* GPIO Ports Clock Enable */
__HAL_RCC_GPIOA_CLK_ENABLE();