Build started: Project: NUCLEO-F439ZI_ETH_LWIP*** Using Compiler 'V6.22', folder: 'C:\Users\Balakrishna\AppData\Local\Keil_v5\ARM\ARMCLANG\Bin'Build target 'NUCLEO-F439ZI_ETH_LWIP'../Core/Src/main.c(21): warning: In file included from...C:/Users/Balakrishna/STM32Cube/Repository/STM32Cube_FW_F4_V1.28.1/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2\cmsis_os.h(126): warning: In file included from...C:/Users/Balakrishna/STM32Cube/Repository/STM32Cube_FW_F4_V1.28.1/Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(62): warning: In file included from...C:/Users/Balakrishna/STM32Cube/Repository/STM32Cube_FW_F4_V1.28.1/Middlewares/Third_Party/FreeRTOS/Source/include\portable.h(52): warning: In file included from...C:/Users/Balakrishna/STM32Cube/Repository/STM32Cube_FW_F4_V1.28.1/Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(167): error: unknown type name '__forceinline' 167 | static portFORCE_INLINE void vPortSetBASEPRI( uint32_t ulBASEPRI ) | ^C:/Users/Balakrishna/STM32Cube/Repository/STM32Cube_FW_F4_V1.28.1/Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE' 162 | #define portFORCE_INLINE __forceinline | ^C:/Users/Balakrishna/STM32Cube/Repository/STM32Cube_FW_F4_V1.28.1/Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(170): error: expected 'volatile', 'inline', 'goto', or '(' | ;../Core/Src/main.c(22): warning: In file included from...../LWIP/App\lwip.h(29): warning: In file included from...C:/Users/Balakrishna/STM32Cube/Repository/STM32Cube_FW_F4_V1.28.1/Middlewares/Third_Party/LwIP/src/include\lwip/opt.h(52): warning: In file included from...C:/Users/Balakrishna/STM32Cube/Repository/STM32Cube_FW_F4_V1.28.1/Middlewares/Third_Party/LwIP/src/include\lwip/debug.h(40): warning: In file included from...C:/Users/Balakrishna/STM32Cube/Repository/STM32Cube_FW_F4_V1.28.1/Middlewares/Third_Party/LwIP/src/include\lwip/arch.h(48): warning: In file included from...C:/Users/Balakrishna/STM32Cube/Repository/STM32Cube_FW_F4_V1.28.1/Middlewares/Third_Party/LwIP/system\arch/cc.h(47): error: 'sys/time.h' file not found 47 | #include <sys/time.h> | ^~~~~~~~~~~~11 errors generated.I am getting the above error when generating code for Keil Microvision from STM32 Cube MX. If anyone of you has come across such an error it'll be helpful if you let me know.
Hello
I have moved your question to the Keil forum where someone may be able to help you.
Many thanks
Oli
Arm Community Manager
It seems that there are some header files missing. You can try to locate them and if they exist in a different folder, you can set an additional include path so that the compiler can find these files.
If these files do not exist, you might want to install additional CMSIS software packs. For example the LwIP and FreeRTOS.
Please do not re-post the same issue multiple times.