Bug in CubeMX LwIP Code generator: redefine struct timeval
I'm using CubeMX 4.18 to generate my code for an STM32F407VG for the System Workbench using the arm-gcc. Works great, except for in socket.h it complains about redefinion of struct timeval.
When I manually set
&sharpdefine LWIP_TIMEVAL_PRIVATE 0
in socket.h
and do a
&sharpinclude <sys/time.h>
in cc.h as suggested, it builds.
But of course every time I make changes to my CubeMX project, it gets overwritten and I have manually edit again.
Please fix this in the next release!
Otherwise great tool!
Markus
#code-generation #lwip #cubemx-bug #cube