HAL libraries don't compile in KEIL using CPP
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2014-07-21 10:25 AM
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
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2014-07-31 8:36 AM
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.