Does not look right. Are those the only two tasks you are creating in
your system? Could it be third task is the idle or timer task being
created? Are you sure it is not your implementation of the macro that
is causing confusion? Put a break point in the implementation to see
where it is getting called from and exactly what it is doing.
Thanks for your response. I saw that in fact the new task being created is the idle thread, however, in debugging, inside the traceTASK_CREATE (xTask) macro, the name that is in pxCurrentTCB-> pcTaskName when creating the idle thread is the name of the task "B "and not idle thread or something.
Tasks are created only once before scheduler execution, just as I presented above. Please, is there any way to know that task “B” is being created only once and not twice?