Please note: We are aware of an issue affecting replies on the Arm Community forums, which may not be loading as expected.
We apologize for any inconvenience and appreciate your patience while we investigate and work to resolve the issue.
Thank you for your understanding.
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?
im getting the same error #20 undefinedwhen tried to compile for stm32fo product can you guys help me out how to resolve this