CubeMX 6.0.0 LwIP generates ethernetif.c that does not compile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-07-27 2:18 PM
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?
Solved! Go to Solution.
- Labels:
-
Bug-report
-
Ethernet
-
STM32CubeMX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-11-09 12:00 AM
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?

- « Previous
-
- 1
- 2
- Next »