2020-07-27 02: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.
2020-08-24 12:32 AM
You can update the FTL template (ethernetif_h7.ftl for H7) located in your installation folder (ex. C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX<x.y>\db\templates) so that the fix will persist across regeneration.
BR
2020-08-06 02:03 AM
Hello @JBerry
could you please share your ioc file?
Thanks
Khouloud
2020-08-06 08:05 AM
2020-08-07 01:14 AM
Thanks @JBerry for the feedback, issue will be fixed.
Best Regards,
Khouloud
2020-08-24 12:32 AM
You can update the FTL template (ethernetif_h7.ftl for H7) located in your installation folder (ex. C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX<x.y>\db\templates) so that the fix will persist across regeneration.
BR
2020-08-31 07:48 AM
@JBerry , Fix is done, it will be available for the next release.
Best Regards,
Khouloud
2020-09-20 09:19 AM
I think I have the same problem? My STM32Cube MCU Packgage for STM32H7 Series is 1.8.0
Errors:
'argument' undeclared (first use in this function); did you mean '_reent'?
'netif' redeclared as different kind of symbol
make: *** [LWIP/Target/subdir.mk:18: LWIP/Target/ethernetif.o] Error 1
2020-10-09 05:10 AM
Soooo how's that fix coming along? It's been two months. Please tell your management that CI is a valuable thing to do and would have caught this before the bug got released. Seriously.
2020-10-30 02:26 PM
Hi!
I had the same issue. I realized that "netif" variable is passed as parameter to this function and then it is assigne to the 'netif' (redeclaration). So I changed the argument passed to this function from 'netif' to 'argument'
void ethernet_link_check_state( struct netif *arguement)
That at least fixed the compile error and my simple http server started.
Regards,
2020-11-06 12:52 AM
Hi!
Did you change anything else other than "void ethernet_link_check_state( struct netif *arguement)"?
As I changed *netif to *arguement, initial error is gone, but other issues popped up.
Regards,