Hello Vincent Gagliardo,
please look at the code in mqx/source/kernel/task.c where it's _task_create_internal function. This one is invoked inside _task_create.
You'll see all possible returns with MQX_NULL_TASK_ID.
Snippet from MQX reference manual:
Traits
• If the child is on another processor, blocks the creator until the child is created
• On failure, calls _task_set_error() to set the task error code (see task error codes)
• For _task_create():
— If the child is on the same processor, preempts the creator if the child is a higher priority
Have you checked task error code ? Once you solve your problem, share it with the community. ThX.
Regards,
c0170