How do I overcome multiple errors in stm32l0xx_hal_***.h ?
I created a new project from scratch based on a Nucleo L053R8 board using the STM32CubeIDE wizard. At compile time, I get a lot of errors in hal include files I even do not care about. Ic annot understand why. Example :
../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal_rcc_ex.h:1959:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'FLASH_TypeDef'?
Looking at HAL_StatusTypeDef, it is defined in file stm32l0xx_hal_def.h which is included in the file it finds an error : stm32l0xx_hal_rcc_ex.h !!!
all the other errors are of the same type with definition in stm32l0xx_hal_def.h included in the file where the error is found.
What is wrong ? Is it a bug ?
