cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F107+Ethernet+Lwip no longer an option?

Raymond Buck
Senior

STM32CubeIDE Version 1.19.0
Build: 25607_20250703_0907

I created a project using the STM32F107 and Ethernet. Everything was setup using the .ioc template with Ethernet and various GPIO stuff. Lwip was not included. I generated the code and all of the Ethernet configuration was created. Compiling the code worked with no errors.

I have not connected my board and tried to program it as I just wanted to see if CubeIDE would generate the code properly for the STM32F107 part.

I then re-opened the .ioc file and enabled Lwip since that was my goal. Now when I generate the code, it removes all of the Ethernet setup code. This means none of the Ethernet RMII pin mapping is in place and none of the Ethernet files are in the project.

Is the STM32F107 no longer supported for Ethernet+Lwip applications? I just need a simple application with 2 buttons to control 2 relays. An STM32F7xx is overkill.

I think I remember reading somewhere a couple of years ago that ST was no longer going to support Ethernet for STM32F1 and STM32F4 parts. Is that the case?

I was using CubeIDE for code generation. It also appears that CubeMX no longer works for the STM32F107 part.

Suggestions appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
Ghofrane GSOURI
ST Employee

Hello @Raymond Buck 

When you enable LwIP,  The RMII/MII pin configuration and initialization code is typically moved or managed within ethernetif.c rather than being in main.c  as shown in the following screenshot 

GhofraneGSOURI_1-1763021435987.png

 

 

GhofraneGSOURI_0-1763021205247.png

THX

Ghofrane

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.

View solution in original post

2 REPLIES 2
Ghofrane GSOURI
ST Employee

Hello @Raymond Buck 

When you enable LwIP,  The RMII/MII pin configuration and initialization code is typically moved or managed within ethernetif.c rather than being in main.c  as shown in the following screenshot 

GhofraneGSOURI_1-1763021435987.png

 

 

GhofraneGSOURI_0-1763021205247.png

THX

Ghofrane

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.

Ghofrane, thanks for pointing that out. I was previously using STM32CubeIDE V 1.12.0 and just upgraded to V19.

I notice that the void MX_LWIP_Init(void) prototype is not setup and that MX_LWIP_Init() function is not being called in main.I added those and the code compiles successfully.

I need to add the httpd option to the .ioc tool and deal with the fsdata or fsdata_custom errors that typically crop up.

Are there any other issues I need to be aware of?

I will connect my hardware and program it to see it I can ping the board.