2025-08-20 5:45 AM
Hello,
I have existing hardware designed using STM32G0B1VET6 microcontroller. I want to redesign this hardware to provide Ethernet interface. I am planning to use ICs like LAN9250 or KSZ8851 or ENC424J600. But all these ICs require TCP/IP stack on host side (microcontroller in my case). I want to know if it is possible to configure having TCP/IP stack using STM32CubeMX for this controller. If yes, is there any way i can interface SPI driver which I will have to develop to interface any one of the above ICs?
Thanks,
Pradeep
2025-08-22 6:54 AM
Hello @PPate.1,
Since the STM32G0B1VET6 MCU does not support Ethernet over RMII/MII, it is not possible to configure Ethernet directly using STM32CubeMX. However, you can import the LwIP library into your project and configure it manually. You will need to implement the interface functions to connect LwIP with your Ethernet IC via SPI, ensuring proper communication. Meanwhile, you can still use STM32CubeMX to generate the initial configuration for other peripherals, including the SPI interface used for the Ethernet IC.
For SPI communication, you can use the HAL SPI driver to send commands and receive data. Your custom driver will mainly consist of command definitions to make your code more readable and maintainable.
Best regards,