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/CC2640R2F: Could not see my task running in Runtime Object View (ROV)

Part Number: CC2640R2F
Other Parts Discussed in Thread: SYSBIOS

Tool/software: Code Composer Studio

Hi all,

I am currently working with CC2640R2F launchpad. I have done a  simple program by creating a task with LED blink program. I have used predefined symbols and conditional compilation to call a blink function.I used Runtime Object View(ROV) to view the currently running task. But i could not see my task running or the task itself. I could only see the idle task running. But I see my LEDs blinking on launchpad. If I didnt use conditional compilation I could see my task running on ROV as well as the LEDs blinking. What has conditional compilation to do with this? Is it fine If I dont see my task on ROV? Can anyone explain me this?

Thanks,

Roshini Radhakrishnan.

  • Roshini,

    The task you made, I'm assuming is a TI-RTOS task create call or are you using POSIX? I've heard sometimes there can be issues for ROV to pick up dynamically created tasks at times. Can you tell me what version of XDC tools you have?

    Also, I've seen this manifest as a memory corruption issue potentially. When you create your dynamic tasks, is the mem 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);

  • Hi Evan,

    The task I have created is a TI RTOS task and it is a static task. The XDC tools version I have installed is xdctools_3_50_03_33_core. 

    The task I have created is:

    #define TASK_STACK_SIZE 0x800

    #define TASK_PRIORITY 1

    static uint8_t sbcTaskStack[TASK_STACK_SIZE];

    static void taskFunction(UArg arg0, UArg arg1);

    static Task_Struct task0;

    void led_createTask(void)
    {
    Task_Params taskParams;

    Task_Params_init(&taskParams);
    taskParams.stack = sbcTaskStack;
    taskParams.stackSize = TASK_STACK_SIZE;
    taskParams.priority = TASK_PRIORITY;

    Task_construct(&task0, taskFunction, &taskParams, NULL);
    }

    Also the same task without conditional compilation and predefined symbols works fine and seen running on ROV. Is there an issue with predefined symbols and conditional compilation? Is it ok if I dont see the task running on ROV but still get output(i.e LEDs blinking)?

  • Hi Roshini,

    Can you run this example and see if it you can view ROV in your project?
    C:\ti\simplelink_cc2640r2_sdk_1_50_00_58\examples\rtos\CC2640R2_LAUNCHXL\sysbios\mutex

    Another great resource on ROV in case you haven't seen it:
    processors.wiki.ti.com/.../Runtime_Object_View_(ROV)
  • Hi Evan,

    Thanks for your reference. I could run that example and view ROV.


    Thanks,

    Roshini Radhakrishnan.