Skip to content

Commit c6a1109

Browse files
authored
Merge pull request #3473 from adustm/stm32f7_ethernet_dbg
Stm32f7 ethernet fix for IAR issue #3387
2 parents 6598e32 + ee3faa4 commit c6a1109

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/stm32f7_eth_init.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ void HAL_ETH_MspInit(ETH_HandleTypeDef* heth)
77
{
88
GPIO_InitTypeDef GPIO_InitStructure;
99
if (heth->Instance == ETH) {
10+
/* Disable DCache for STM32F7 family */
11+
SCB_DisableDCache();
1012

1113
/* Enable GPIOs clocks */
1214
__HAL_RCC_GPIOA_CLK_ENABLE();
@@ -78,4 +80,4 @@ void HAL_ETH_MspDeInit(ETH_HandleTypeDef* heth)
7880
/* Disable the Ethernet global Interrupt */
7981
NVIC_DisableIRQ(ETH_IRQn);
8082
}
81-
}
83+
}

features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/stm32f7_eth_init.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ void HAL_ETH_MspInit(ETH_HandleTypeDef* heth)
77
{
88
GPIO_InitTypeDef GPIO_InitStructure;
99
if (heth->Instance == ETH) {
10+
/* Disable DCache for STM32F7 family */
11+
SCB_DisableDCache();
1012

1113
/* Enable GPIOs clocks */
1214
__HAL_RCC_GPIOA_CLK_ENABLE();
@@ -84,4 +86,4 @@ void HAL_ETH_MspDeInit(ETH_HandleTypeDef* heth)
8486
/* Disable the Ethernet global Interrupt */
8587
NVIC_DisableIRQ(ETH_IRQn);
8688
}
87-
}
89+
}

features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F7/TARGET_F746_F756/stm32f7_eth_init.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ void HAL_ETH_MspInit(ETH_HandleTypeDef* heth)
77
{
88
GPIO_InitTypeDef GPIO_InitStructure;
99
if (heth->Instance == ETH) {
10+
/* Disable DCache for STM32F7 family */
11+
SCB_DisableDCache();
1012

1113
/* Enable GPIOs clocks */
1214
__HAL_RCC_GPIOA_CLK_ENABLE();

features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/stm32f7_eth_init.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ void HAL_ETH_MspInit(ETH_HandleTypeDef* heth)
77
{
88
GPIO_InitTypeDef GPIO_InitStructure;
99
if (heth->Instance == ETH) {
10+
/* Disable DCache for STM32F7 family */
11+
SCB_DisableDCache();
1012

1113
/* Enable GPIOs clocks */
1214
__HAL_RCC_GPIOA_CLK_ENABLE();
@@ -84,4 +86,4 @@ void HAL_ETH_MspDeInit(ETH_HandleTypeDef* heth)
8486
/* Disable the Ethernet global Interrupt */
8587
NVIC_DisableIRQ(ETH_IRQn);
8688
}
87-
}
89+
}

0 commit comments

Comments
 (0)