2024-10-03 07:55 AM
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?
Solved! Go to Solution.
2024-10-03 09:13 AM - edited 2024-10-03 09:18 AM
No. There is no special check. It just sets the values you selected as it does for the HAL.
2024-10-03 08:41 AM - edited 2024-10-03 08:44 AM
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.
2024-10-03 09:09 AM
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.
2024-10-03 09:13 AM - edited 2024-10-03 09:18 AM
No. There is no special check. It just sets the values you selected as it does for the HAL.
2024-10-03 11:09 AM
@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.