Loading...
 
Skip to main content

System Workbench for STM32


FreeRTOS with enabling cpp, all functions are not working

Microcontroller : STM32F415RGTx

When I was debugging this issue more in detail, then it seems to be like some heap memory allocation is done in wrong way. So maybe I would have to change heap_1/heap_2/heap_3/heap_4/heap_5.c files. So I have tried all of them but no one is working with enabling c++ option.

Still for more clarification when I am testing normal LED blinking task with -C99 option then it is working and as sson as I am doing -cpp same code is not working and that code is stucking somewhere in below code(startup_stm32f415xx.s),

SVC_Handler PROC
EXPORT SVC_Handler WEAK
B .
ENDP

So please any help would be appreciated. Thanks.

France

What do you mean by "doing -cpp"?

Do you just convert the project to C++ and recompile or do you make any other change in the project?

FreeRTOS source code is C code and should always be compiled as C code, not as C++ code, so do not rename any .c file as .cpp, except perhaps for the main.c and, of course, your own source code.

Hope this helps,

Bernard (Ac6)