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.

CCS/TM4C1290NCPDT: duplicate task name.

Part Number: TM4C1290NCPDT

Tool/software: Code Composer Studio

Hi:

Here is fragment of the code I developed.

 sprintf ( task_name , "%s%d","tcpwrk", connection_count );
        taskParams.instance->name = task_name;
        connection_count++;

        taskHandle = Task_create((Task_FuncPtr)tcpWorker, &taskParams, &eb);

I have multiple  instates of  tcpWorker task but it looks lie they all have the same ask name in ROV .

How make each task have its own unique name in ROV ?

  • Sergey,

    The name is not copied (to minimize memory usage). Instead the address of the supplied name is used. So if you are supplying the same address (in this case task_name) to all the instances, all will have the same name. You need to supply a unique address to each task instance.

    Todd