Skip to content

Commit 0c8add6

Browse files
committed
DISCO_H747I_CM4 compilation issue
SCB_DisableDCache() function is only available for M7 core.
1 parent 69a7d67 commit 0c8add6

File tree

1 file changed

+2
-0
lines changed
  • features/netsocket/emac-drivers/TARGET_STM/TARGET_STM32H7/TARGET_DISCO_H747I

1 file changed

+2
-0
lines changed

features/netsocket/emac-drivers/TARGET_STM/TARGET_STM32H7/TARGET_DISCO_H747I/stm32h7_eth_init.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,10 @@ void HAL_ETH_MspInit(ETH_HandleTypeDef *heth)
6464
{
6565
GPIO_InitTypeDef GPIO_InitStruct;
6666
if (heth->Instance == ETH) {
67+
#if defined(CORE_CM7)
6768
/* Disable DCache for STM32H7 family */
6869
SCB_DisableDCache();
70+
#endif
6971

7072
/* GPIO Ports Clock Enable */
7173
__HAL_RCC_GPIOA_CLK_ENABLE();

0 commit comments

Comments
 (0)