AnsweredAssumed Answered

Bug in CubeMX LwIP Code generator: redefine struct timeval

Question asked by Markus Rudolf on Dec 19, 2016
Latest reply on Apr 29, 2018 by virzi.joseph
Branched to a new discussion

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

#define LWIP_TIMEVAL_PRIVATE 0

in socket.h

and do a

#include <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

Outcomes