cancel
Showing results for 
Search instead for 
Did you mean: 

Tasks created by CubeMX vs created by code

Manuel Ferrero
Associate III

Is there any difference if I create two freertos tasks by hand in my code or if I do it using the cubemx interface?
Things like preventive checks, checks that the stacks do not overlap or are too big compared to the available memory?

3 REPLIES 3
SofLit
ST Employee

Hello @Manuel Ferrero ,

I don't think there is something preventing you to do this. Just put it un "User code" block.

The check of stack is done at OS level at runtime if you activate stack overflow hook. CubeMx just set the values you selected.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

No, I know I can create tasks and queues and whatever from my code, I was just wondering if cubemx does some checks behind the scene.

It seems it does not.

Thanks.

No. There is no special check. It just sets the values you selected as it does for the HAL.

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.