Skip to main content
SH.3
Associate
Sep 22, 2022 12:28 PM UTC
Question

Ethernet not working on STM32h747 disco board

Hi All,

We are using latest CubeH7 V 1.10.0,

we have followed community.st.com/s/article/How-to-create-project-for-STM32H7-with-Ethernet-and-LwIP-stack-working and community.st.com/s/question/0D50X0000BOtfhnSQB/how-to-make-ethernet-and-lwip-working-on-stm32.

but the Ethernet is not coming up, the HAL_ETH_Init() call is stuck in checking for software reset, * Wait for software reset */

 while (READ_BIT(heth->Instance->DMAMR, ETH_DMAMR_SWR) > 0U) ,

Any pointer for this issue?

Thanks & Regards,

S.H.

This topic has been closed for replies.

4 replies

SH.3
SH.3Author
Associate
Sep 27, 2022 3:44 AM UTC

Thanks @Piranha​ ,

There was no clock from phy, now this issue is resolve,

Further during communication testing we are observing tx semaphore value is going bad, pxQueue->uxItemSize is not zero, and communication stops, any idea on this,

0693W00000SwJ2nQAF.pngRegards,

S.H.

hs2
Visitor II
Sep 27, 2022 12:00 PM UTC

Very often this kind of (internal) data corruption is caused by stack overflows. Did you enable stack checking or verified that you provide sufficient stack to.your tasks ?

2nd cause are incorrect NVIC interrupt priorities not matching FreeRTOS configuration.

Did you also define configASSERT for development ?

Piranha
Principal III
Sep 28, 2022 10:30 PM UTC

Recently another bug was reported:

https://community.st.com/s/question/0D53W00001oImr4SAC/bug-stm32-lwip-ethernet-driver-tx-deadlock

And have you fixed all multi-threading related flaws?