cancel
Showing results for 
Search instead for 
Did you mean: 

HAL libraries don't compile in KEIL using CPP

riktw
Associate
Posted on July 21, 2014 at 19:25

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-hal
1 REPLY 1
Posted on July 31, 2014 at 17:36

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.