cancel
Showing results for 
Search instead for 
Did you mean: 

There is any bare metal routines for the ETH on the MP135?

morthy
Associate II

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

4 REPLIES 4
PatrickF
ST Employee

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.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

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?

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.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

okay,thank you