cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX doesn't allow to delete FreeRTOS task if it is first in the list and there are another tasks.

ACheb.1
Associate
 
2 REPLIES 2

Hello @ACheb.1​,

First let me welcome you to the STM32 Community :smiling_face_with_smiling_eyes:

If I well understand your issue, the first task created by default by STM32CubeMX cannot be deleted. Please correct me if I misunderstood.

This is an expected behavior. In fact, the added tasks can be deleted normally, otherwise Default task already created by CubeMX (which is named defaultTask) can be only modified and cannot be deleted.

Actually, this is mentioned by CubeMX: if you move the mouse over this task, a tooltip describing the behavior will be displayed (the default task is supposed to contain the init of the other middleware selected, it can be modified but not removed).

0693W00000Bc5KLQAZ.jpgI hope this answers question. If this is the case, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Do not hesitate to raise any feedback or issue.

Khouloud.

ACheb.1
Associate

Thanks for your reply! As I see there is no any "default task" flag. If I open .ioc file in text editor and delete first task by hands, then open this file normally with cube this task will be normally deleted. Of course such a method will cause some consequences like code merging while generation procedure (I knew where it would lead).

So for cube "default task" flag always points to first existing task (as now my normally added task can't be removed), but IMHO there is no difference to delete any task. The main thing is that there is always one task left and it can't be deleted.

If you not going to do anything with that - just disable Delete button for first selected task.

Thank you.