2022-09-22 05:28 AM
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.
2022-09-22 02:28 PM
2022-09-26 08:44 PM
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,
Regards,
S.H.
2022-09-27 05:00 AM
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 ?
2022-09-28 03:30 PM
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?