Hi,
I am observing an issue related with inclusion of time.h when generating project for NUCLEO-H753ZI with help of STM32CubeMX.
attached ZIP file contains project and IOC file
lwIP_Ethernet_WORKS_03.zip
I initially thought it to be an issue with LWIP related code, but later figured out that the problem reported in the file
STM32Cube_FW_H7_V1.12.1\Middlewares\Third_Party\LwIP\system\arch\cc.h is because of below conditional compilation which should work for Keil AC5 but will not work for Keil AC6
#if defined (__GNUC__) & !defined (__CC_ARM)
#define LWIP_TIMEVAL_PRIVATE 0
#include <sys/time.h>
#endif
and possibly need to be updated to:
#if defined (__GNUC__) & !( defined(__CC_ARM) /* Arm Compiler 5 */ || ( defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010000) /* Arm Compiler 6 (armclang) */ ) )
#define LWIP_TIMEVAL_PRIVATE 0
#include <sys/time.h>
#endif
May you please help resolve the concern. The above fix may cause other issues to pop up, which shall also need fix within ethernetif.c
Thanks,
Rajeev
Hi,
I am observing an issue related with inclusion of time.h when generating project for NUCLEO-H753ZI with help of STM32CubeMX.
attached ZIP file contains project and IOC file
lwIP_Ethernet_WORKS_03.zip
I initially thought it to be an issue with LWIP related code, but later figured out that the problem reported in the file
STM32Cube_FW_H7_V1.12.1\Middlewares\Third_Party\LwIP\system\arch\cc.his because of below conditional compilation which should work for Keil AC5 but will not work for Keil AC6and possibly need to be updated to:
May you please help resolve the concern. The above fix may cause other issues to pop up, which shall also need fix within ethernetif.c
Thanks,
Rajeev