Skip to main content
gcaif
Associate II
January 25, 2021
Question

stm32h7 using eth mac

now,I using stm32h7 series, and run eth mac to trasmit and receive ethernet frame. but It can trasimit ethernet frame sucess,but It can`t receive.I had set mac filter to receive all.the program:

static void MX_ETHMAC_Init(void)

{

 ETH_MACFilterConfigTypeDef macFilter;

  

 HAL_ETH_GetMACFilterConfig(&heth, &macFilter);

  

 macFilter.PromiscuousMode = ENABLE;

 macFilter.ReceiveAllMode = ENABLE;

 macFilter.BroadcastFilter = DISABLE;

 HAL_ETH_SetMACFilterConfig(&heth, &macFilter);

  

 return;

}

thank you.

one board send ethernet sucess , the other one board can`t receive the ethernet frame.

I use wireshark,it show the first one board send the ethernet frame sucess.

This topic has been closed for replies.

2 replies

Vangelis Fortounas
Associate II
January 25, 2021

Hello

This is an issue..

https://community.st.com/s/article/FAQ-DMA-is-not-working-on-STM32H7-devices

Search also in this forum for other solutions

QLiu.3
Associate
July 23, 2021

hello,

I have the same question. I want to use Mac filter to prevent the ethernetpackge into mcu, but it did not work. i have tried both the hal_api funtion and ​operated the register .but it did not work .

do you solve this question now?