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?

1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

4 REPLIES 4
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.

@Manuel Ferrero wrote:

 I was just wondering if cubemx does some checks behind the scene..


CubeMX just generates source code - you can see the code that it generates, and inspect what it does.

CubeMX doesn't do anything at run time - it is purely a Host utility.