How to disable the FreeRTOS task generation in CubeMX?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-27 1:16 PM
This problem was already mentioned two years ago and was allegedly fixed in version 5.2.0 of CubeMX. It is currently impossible for me to remove the default FreeRTOS task from CubeMX (6.0.1 with a STM32 F4 MCU), even removing it from the ioc file does not help. Is there any other way to do this?
As a side node this would not be a problem if CubeMX created the task attribute definition in the right order. g++ considers this to be an error.
- Labels:
-
FreeRTOS
-
STM32CubeMX
-
STM32F4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-29 3:38 PM
How g++ belongs here? CubeMX generates plain C code.
People who want to add C++ to that C code, please just use your common sense.
Resist temptation to rename main.c to cpp. C++ is not a strict superset of C... not yet.
-- pa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-29 6:12 PM
The only way to use C++ and take full advantage of CubeMX is to compile the main.c with g++ (renaming does not work properly). This also does not have anything to with C++, CubeMX generates a main.c that is always perfectly valid C++ code.
​
The problem is that CubeMX generates the definition in the wrong order (that shouldn't be done in C either) and the arm-none-eabi g++ has the error for this enabled in such a way, that it can not be disabled as far as I know (it is an optional warning normally).​
