cancel
Showing results for 
Search instead for 
Did you mean: 

stm32h7 using eth mac

gcaif
Associate II

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.

2 REPLIES 2

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

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?