This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/F28M36P63C2: When creating a task must the parameters be static?

Part Number: F28M36P63C2

Tool/software: TI-RTOS

Once a task (or other bios object) has been created must the parameters still exist in memory? or are their contents used to initialize the object and never referenced again?

  • Hi John,

    The parameter structure is no longer needed after the create (or construct) call is made. Any needed settings are stored internal (generally in the new object). For example, with Task_create, the task priority in the parameters is stored in the new Task_Object. Note: some of the items that are pointed to be the parameters structure must be persistent. Hopefully these are obvious like if you supply the stack buffer in the Task_Params (instead of using NULL and letting the API allocate the memory), that stack buffer must be persistent after the Task_create call.

    Todd