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.

Task not in ROV view

Other Parts Discussed in Thread: CC2650

Hello,


I'm trying to debug a stack overflow with ROV on a cc2650 target (detailed here : (  https://e2e.ti.com/support/embedded/tirtos/f/355/t/507535  )

But something is strange in ROV view, some created tasks are not present.

I'm adding two tasks (3 tasks have already been created) ;

I've set a breakpoint into my newly created task entry point :

As you can see, there is no new tasks present in ROV view whereas I reached my new task entry point function!

Is it normal?

lah

  • I would expect to see the other task to appear in ROV.

    Possibly tangential, but I see one of your stackPeaks marked in red. What does the "Scan for errors..." tab in the BIOS module say about that?

    Gilbert
  • Scanning for errors in ROV view reports "All ROV views have been run and no errors were encountered".

    Sometimes I can find created tasked in Task "Detailed" tab but not in "Basic" tab, and after if a step in debugger, I get only 3 tasks... my 2 newly created tasks have disappeared :

    I'm using TI RTOS 2.13.0.06 with CC6 6.1.2.00015 (all packages are up to date) on Linux.

    lah

  • Lahorde,

    It sounds like memory corruption to me. When you create your dynamic tasks, is the memory coming from your system heap? Is it large enough?

    Is it possible to construct your tasks? Maybe just for debugging? Try to statically allocate all your task memory and see if ROV behaves better. Do something like this.

    /* task memory */
    #define WORK_TSKSTKSIZE 0x800
    
    UInt8 workTskStack[WORK_TSKSTKSIZE];    /* task stack */
    Task_Struct workTskStruct;              /* task object */
    
    /* construct the work task */
    Task_Params_init(&taskParams);
    taskParams.stackSize = WORK_TSKSTKSIZE;
    taskParams.stack = &workTskStack;
    Task_construct(&workTskStruct, Monitor_task, &taskParams, NULL);
    

    ~Ramsey