2024-07-18 12:10 AM
Hello,
I am trying to do bare metal development, and the ETH uses the RGMII interface and the lwIP protocol stack. The routines I have found are mostly for M4 or M7, and the interfaces are all RMII. I tried to port lwIP from the STM32H7, but it's doesn't work. the hardware is right because the network is working when tested on the development board with Linux
2024-07-18 04:14 AM
HI @morthy
within STM32CubeMP13 delivery, you could find ETH IP driver
https://wiki.st.com/stm32mpu/wiki/STM32CubeMP13_Package#HAL_drivers
There is also some NetXDuo examples provided.
https://wiki.st.com/stm32mpu/wiki/STM32CubeMP13_Package#NetX_Duo_applications
with some help to migrate from LwIP.
https://wiki.st.com/stm32mpu/wiki/Introduction_to_NETXDUO#Migration_to_NetX_Duo
Porting LwIP is probably possible, but need some work on your side to really understand all the differences from STM32H7 (mostly around SYSCFG and clock config).
Regards.
2024-07-20 01:28 AM
Thank you for your response.
I looked at these links and also reviewed the corresponding package code, and all the interfaces are RMII, not RGMII, which means they can only achieve a speed of 100M.Even on the STM32MP135F_DK, RMII is used, with no examples of RGMII. Are there no examples of RGMII? or is it that the configurations for both are the same except for the pins?
2024-07-22 12:08 AM
Hi,
STM32MP135F-DK board is only RMII, so the examples are stick to this.
Difference for RGMII is probably minor and maybe around some HW settings during initialisation (clocks, pins, etc..).
I'm not expert and you should dig a bit into AN5474 and what CubeMx generates for RGMII.
Regards.
2024-07-23 04:25 AM
okay,thank you