2014-07-21 10:25 AM
Hello all,
I wanted to use the HAL libraries for a project in KEIL. But when I add the --CPP flag to support CPP compiling I get a ton of errors, all of them are the following: ..\..\..\..\..\..\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_uart.c(1585): error: &sharp511: this operation on an enumerated type requires an applicable user-defined operator function The code for this line is: huart->ErrorCode |= HAL_UART_ERROR_DMA; I tested with KEIL 4.72 and 5.11. Is it possible to use the HAL libraries for a C++ project? Rik #keil-cpp-hal2014-07-31 08:36 AM
Hi Rik,
Thank you for the feedback. We understand that the STM32Cube HAL Library is not yet compliant with C++ compliers (MDK-ARM, or IAR...).We take this feedback into consideration and are working to improve the STM32Cube experience for everyone. Keep an eye out for the next update.With regards.