Hi all,
I'm using stm32cubemx to create RTOS project, if using c99 compiler, everything good, but when using cpp, there are a lot errors, check the manual, CMSIS-OS.C support c++. Below is one of the error. thePool = pvPortMalloc(sizeof(os_pool_cb_t)); ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c(791): error: #513: a value of type "void *" cannot be assigned to an entity of type "osPoolId"
can anybody help to solve the problem?
Thanks a lot
The best way is to insert all c-files into separate group then it is necessary to set up compiler option --c90 (or other one) inside Misc Controls edit for this group