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/CC3220SF-LAUNCHXL: cc3220sf

Part Number: CC3220SF-LAUNCHXL

Tool/software: Code Composer Studio

Hi,

i want to use RTOS viewer and i have several task in my code.

i set flags:

Task.checkStackFlag = true;

halHwi.checkStackFlag = true;

RTOS viewer show only one task details.

advice  

  • Hi Asaf,

    First of all, you don't need to enable anything to use the ROV (RTOS Object View) tool. How did you create the tasks? There are three ways
    1. Create in the .cfg file (e.g. Task.create() or graphically)
    2. Call Task_create during runtime
    3. Call Task_construct during runtime

    Depending on your version of TI-RTOS, constructed tasks (i.e. #3 above) may not should up in ROV. What version of TI-RTOS do you have (and what version of CCS are you using)? If you are constructing, where is the Task_Struct variable. We have some limitations with that all in ROV (e.g. only the first element in an array of Task_Structs might be shown).

    Also, when are you looking at ROV? If you look at main, you'll need to suspend the target to get ROV to update.

    Todd
  • i use Call Task_create during runtime and Call Task_construct during runtime.

    TI - RTOS version - tirtos_cc32xx_2_16_01_14

    ccs version -7.0.0

  • With that version, not all constructs are located via ROV. To improve the likelihood, make sure you don't have the Task_Structs in an array or be static. They must be global variables to have a chance to be found.

    If you change the Task_constructs to Task_create, they will be found by ROV.

    Todd
  • what is the different between them Task_construct and Task_create

  • Here's a write-up that talks about the three ways to "create" a kernel object: processors.wiki.ti.com/.../TI-RTOS_Object_Creation_Comparison

    Short story:
    XYZ_construct: you supply a structure in the construct that will be used to hold internal state information
    XYZ_create: internally the API allocates the memory needed to hold the internal state information

    Otherwise the two calls are basically the same. For some modules, the XYZ_construct call does not need an Error_Block.

    Todd