cancel
Showing results for 
Search instead for 
Did you mean: 

How Ethernet MAC interrupts have been enabled by STM32CubeH7?

Leon_MS
Associate III

Hi all. This is the first time I am using CubeH7 + FreeRTOS + LwIP. I have tried to trace down how Ethernet MAC interrupts have been enabled. If I got the code correctly:

+ I enabled "Ethernet global interrupt" option from CubeMX "ETH".

+ I enabled "LwIP" and "FreeRTOS" from CubeMX.

+ "LwIP", "FreeRTOS" and "ETH" are all owned by Cortex-M4.

Then when I trace down function calls MX_LWIP_Init() -> netif_add() -> ethernetif_init() -> low_level_init(). Seems there is no Ethernet interrupt enabling code...

And when I setup a breakpoint to HAL_ETH_IRQHandler(). It's not getting called as well...

I am now using:

STM32CubeMX v6.9.2

STM32CubeH7 v.1.11.1

Maybe I setup something wrong? Thanks!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Pavel A.
Evangelist III

In the code (especially ethernetif.c ) look for call to HAL_ETH_Start_IT(&heth). This enables the ETH interrupts.

View solution in original post

2 REPLIES 2
Pavel A.
Evangelist III

In the code (especially ethernetif.c ) look for call to HAL_ETH_Start_IT(&heth). This enables the ETH interrupts.

Leon_MS
Associate III

Thanks @Pavel A. !