cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX 6.0.0 LwIP generates ethernetif.c that does not compile

JBerry
Associate III

It looks like a simple refactor bug. The ethernet_link_check_state function includes the line:

 struct netif *netif = (struct netif *) argument;

but argument does not exist and netif is the name of the function argument. I assume a previous version had argument passed in as a void*. Deleting the line seems sufficient to fix it. Is there a way I can fix it so that it persists across a regeneration?

10 REPLIES 10

I did not change enything else.

Notice that it has to be "argument". I made mistake in word.

There are two ways to fix it. You can just remove the line:

struct netif *netif = (struct netif *) argument;

That line for me does nothing but maybe I'm wrong.

Or you can pass to the fucntion "*argument".

What are your other issues?