I am merging two projects for STM32F102. The problem is the compiler errors. It exist in all HAL driver files rcc, adc, dma... etc.
..\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_rcc_ex.h(1846): error: #20: identifier "HAL_StatusTypeDef" is undefined
It is unresonable problem because header file with this HAL_StatusTypeDef is included. I created another one header (dup.h) file and put there the same definition of HAL_StatusTypeDef and the the error is:
..\Inc\dup.h(11): error: #256: invalid redeclaration of type name "HAL_StatusTypeDef" (declared at line 62 of "..\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_def.h")
so now the compiler see the stm32f1xx_hal_def.h with orginal HAL_StatusTypeDef.
so IAR is much better than Kail .... but is anybody who knows what is going on with that unresonable error?
Hi, I think the variable is used in more than one files and some may not have the visibility to the declaration .h file hence the error. Just my guess.