2022-03-10 06:49 AM
I am using a KSZ9021GN PHY in MII mode. Due to supply chain issues we had to resort to this PHY. (Cube MX says I can't use GMII mode).
I am experiencing this apparently common issue:
[ 15.650981] dwmac4_dma_reset err
[ 15.652849] stm32-dwmac 5800a000.ethernet: Failed to reset the dma
[ 15.659006] stm32-dwmac 5800a000.ethernet eth0: stmmac_hw_setup: DMA engine initialization failed
[ 15.668518] stm32-dwmac 5800a000.ethernet eth0: stmmac_open: Hw setup failed
I have read over https://wiki.st.com/stm32mpu/wiki/Ethernet_overview#How_to_debug
and it says typically that the clock(s) are not present at reset, but I am not clear on what clocks are involved in MII mode.
Any thoughts on what might be wrong?
Solved! Go to Solution.
2022-03-10 07:22 AM
Hi @BillR ,
from your schematics abstract, I see a major issue (which explain your error message):
In addition, few points to be double checked/corrected:
Once those HW issues are ok, if you still have issues, please share your Ecosystem version and DT config for further analysis.
Regards,
2022-03-10 07:22 AM
Hi @BillR ,
from your schematics abstract, I see a major issue (which explain your error message):
In addition, few points to be double checked/corrected:
Once those HW issues are ok, if you still have issues, please share your Ecosystem version and DT config for further analysis.
Regards,
2022-03-10 07:44 AM
Patrick, thanks for the fast response. This major issue you described was starting to dawn on me just as you replied. We need to respin the board anyway and will take all these changes into account. Thanks a lot!
Bill.
2022-03-10 07:53 AM
Hope that it will run smoothly then.
(maybe you could already try by removing R101 and connecting signal to PHY pin 57)
Regards,
In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'