HI,
Would you help me with advice? I’m very new in ARM and FreeRTOS…
I need to port some C++ code to ARM with FreeRTOS.
There is 2 ways: rewrite code using only C, or make some changes and try to use C++.
It would be very nice if someone tells me how to enable C++ support with Eclipse+arm-none-eabi-gcc compiler and FreeRTOS. When I try to enable it I get many error message… Would you give me some instructions and correct make_file.
Search this forum for C++. There are some posts with information on how to do this.
Basically, compiler the FreeRTOS code as C and your own code as C++ (the FreeRTOS headers are written for this), or remove the data hiding from the FreeRTOS code and compile it all as C++.
While I don’t use that exact combination, I do use FreeRTOS in a C++ project. The key is that the FreeRTOS files (which are of type .c) need to be compiled a “C” code, not C++ code. The compiler should have an option switch to make use the file extension to determine the compiling mode.