İsmail Fatih ILTAR
İsmail Fatih ILTAR

Reputation: 131

stm32 ETH_IRQHandler never hit

Im using stm32f746ZGT + LAN8472A and lwip + freertos on my custom board. I generated default ethernet project by cubemx. I set static ip.

  1. After connect the cable Link leds seem like good. Yellow one is stable and green one is blinky.
  2. In debugging i can see netif is fully configured and link is up.
  3. RXD0 and RXD1 pins which are entering mcu have signal (i can see on oscilloscope screen).
  4. Clocks are good (i tested with oscilloscope).

But ETH_IRQHandler never hit so it doesnt answer any questions such as ping request. (I enabled ICMP at lwIP settings). What should i check to find the source of problem

Upvotes: 1

Views: 1195

Answers (2)

I would suggest you check your Memory Protection Unit settings: ETH-related memory should be allowed to be modified by DMA (by default it's not). It is not a problem from Errata. I saw that in the past and the solution was the proper MPU configuration and proper size and alignment of Ethernet DMA buffers.

Upvotes: 0

l.raimondi
l.raimondi

Reputation: 419

I'm stuck in an issue that seems quite similar to your. I don't have a solution yet, but thought to share something I found that maybe take you into the right direction.

What I've found is that this seems an issue of teh Micro itself. Following I'm signaling you two links that point to long disucssions regarding (I think) the same problem.

https://github.com/ARMmbed/mbed-os/issues/6262 STM Errata

STM Errata

They both seem to point out to a specific hardware vesion of the STM32F769 (Rev. A) and it seems that the thing is solved in Rev. Z......I use a lot of conditionals, I know, but until I'll be able to test a Micro with the correct revision I won't be able to confirm the problem/solution.

Hope it helps.

Lorenzo

EDIT! While I don't have an answer yet I can confirm that on STM32F4, with the same software, the problem does not show.

Upvotes: 0

Related Questions