MQX Lite does not support dynamic task creation, which is one of main differences when compared to the Task Management component of the standard MQX. All tasks resources must be pre-allocated at compile time. The number of tasks is limited to one task activation at one time, either when MQX Lite starts, or at a designated moment in the user application. Usage of the _task_create() and _task_create_blocked() functions is disabled in MQX Lite. Instead, _task_create_at() function must be used.
Multiple tasks cannot be created from the same task template in MQX Lite, unless all tasks stacks are allocated statically and _task_create_at() function is correctly called in the application.
The application can dynamically change any task attribute. Only one task is active (has the processor) at any given time.
An exit function can be specified for each task, which MQX Lite calls when it terminates the task, and an exception handler, which MQX Lite calls when an exception occurs during task execution.
The list of MQX Lite Task Managements API functions (_task_ prefix) is provided together with detailed description of each function in MQX Lite Reference Manual (MQXLITERM).
See the LED MQX Lite example code for the demonstration of the correct task creation. See MQX Lite Demo Applications for information about the location of MQX Lite examples.