fix for #3387 need to disable the data cache for Ethernet to use the DMA

descriptors if they are located in SRAM1 and SRAM2
pull/3473/head
adustm 2016-12-22 17:23:55 +01:00
parent eb3dc2d2c8
commit ee3faa408d
4 changed files with 11 additions and 3 deletions

View File

@ -7,6 +7,8 @@ void HAL_ETH_MspInit(ETH_HandleTypeDef* heth)
{
GPIO_InitTypeDef GPIO_InitStructure;
if (heth->Instance == ETH) {
/* Disable DCache for STM32F7 family */
SCB_DisableDCache();
/* Enable GPIOs clocks */
__HAL_RCC_GPIOA_CLK_ENABLE();
@ -78,4 +80,4 @@ void HAL_ETH_MspDeInit(ETH_HandleTypeDef* heth)
/* Disable the Ethernet global Interrupt */
NVIC_DisableIRQ(ETH_IRQn);
}
}
}

View File

@ -7,6 +7,8 @@ void HAL_ETH_MspInit(ETH_HandleTypeDef* heth)
{
GPIO_InitTypeDef GPIO_InitStructure;
if (heth->Instance == ETH) {
/* Disable DCache for STM32F7 family */
SCB_DisableDCache();
/* Enable GPIOs clocks */
__HAL_RCC_GPIOA_CLK_ENABLE();
@ -84,4 +86,4 @@ void HAL_ETH_MspDeInit(ETH_HandleTypeDef* heth)
/* Disable the Ethernet global Interrupt */
NVIC_DisableIRQ(ETH_IRQn);
}
}
}

View File

@ -7,6 +7,8 @@ void HAL_ETH_MspInit(ETH_HandleTypeDef* heth)
{
GPIO_InitTypeDef GPIO_InitStructure;
if (heth->Instance == ETH) {
/* Disable DCache for STM32F7 family */
SCB_DisableDCache();
/* Enable GPIOs clocks */
__HAL_RCC_GPIOA_CLK_ENABLE();

View File

@ -7,6 +7,8 @@ void HAL_ETH_MspInit(ETH_HandleTypeDef* heth)
{
GPIO_InitTypeDef GPIO_InitStructure;
if (heth->Instance == ETH) {
/* Disable DCache for STM32F7 family */
SCB_DisableDCache();
/* Enable GPIOs clocks */
__HAL_RCC_GPIOA_CLK_ENABLE();
@ -84,4 +86,4 @@ void HAL_ETH_MspDeInit(ETH_HandleTypeDef* heth)
/* Disable the Ethernet global Interrupt */
NVIC_DisableIRQ(ETH_IRQn);
}
}
}