cancel
Showing results for 
Search instead for 
Did you mean: 

Cube does not generate initialization code for Ethernet GPIO

regjoe
Senior

Hello @Sara BEN HADJ YAHYA and @all,

I just came across the "eth.c and etc.h not generated" problem as mentioned in this older thread CubeIDE 1.9.0, and CubeH7 1.10.0 does not generate HAL_ETH_MspInit .

In this thread, which is unfortunately read only, are two topics unanswered, maybe some people here can find out what happened to them in the meantime.

1st there is a "internal ticket number" : what happend to it?

2nd there is a workaround suggested which does not work around anything for me. The files are still not generated, no matter if the LAN8742 PHY component is configured or this parameter is set to UNDEFINED.

I'm here on Cube V6.14.1 and H75x. I want to use the KSZ8863 switch and I'm just starting to write code for it, so it would be great to know, how to integrate my code in the code into the generated project in such a way it is "Cube compliant", e.g. disable LWIP in Cube, generate code including eth.c/.h files, rename the files, re-enable lwip in Cube and generate final code which now includes the previously saved ethernet initialization files. Any better idea?

BTW: I share the feeling that the H7 Ethernet pin initialization belongs to the HW layer and not to lwip or other 3rd party stuff.

Thanks,

Jochen

1 REPLY 1
Ghofrane GSOURI
ST Employee

Hello @regjoe 

I am currently looking into this issue.

I will get back to you as soon as possible.

THX

Ghofrane