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: how use task_sleep() in ti_rtos ?

Other Parts Discussed in Thread: CC3220S

Tool/software: TI-RTOS

hi:

In ti_rtos study paper ,  there is  a comment of how to use task_sleep(), but I use it maybe fail .    because my board LED do not blink . just light. 

first :  I read here .

Lab's process:

           

I do this as above.   but , toggleLED task do not run again .

blink_C28x_TASK_task_sleep.zip

what is wrong while I configurate?

best regard!

hunk 

 

  • Hi hunk,

    I think you're not seeing the LED toggle because your Task_sleep() is too long.  You have called Task_sleep(500000).  The parameter passed to Task_sleep() is in system Clock ticks, not microseconds.  If the Clock tick period is 1000 (microseconds), then 500000 ticks is 500 seconds.  If you want to seep for 500 milliseconds, call Task_sleep(500).

    Best regards,

    Janet

  • hi , janet

    thank you very much!

    but i have another question:

    you know I am studing the TI_RTOS .  there is option in ccs of compare . but I am stuck on "expend  project" can you tell me how do it?

    like:

    i don't know how do "expanded"

    best regard

    hunk

  • hi, janet, 

    I want ask you more question about task-dynamic creating. 

    in lab8b's main.c   there is commout say : import UIA .  but I don't know how import UIA  ,    I have download UIA form App Center ,    do I need do this even though I use dxc3.2?

    I don't know how add UIA.  pleas help

    best regard

    hunk

  • Hi Hunk,

    It's nice to know CCS has that comparison feature.  I didn't know it had that.  Here is how you can compare 2 files from 2 different projects:

    1. In the CCS Project Explorer view, I have 2 projects, task_CC3200S and task_DSK6455:

    2. Expand each of the projects by clicking the mouse on the triangle to the left of the project name:

    3. Say I want to compare task.c in the task_CC3220S project with the mutex.c of the task_DSK6455 project.   Click on task.c, hold the <Ctrl> key down and click on mutex.c so that both files are selected:

    4. Right-click with the mouse on one of the 2 files and a pop-up menu appears.  Near the bottom of the menu, there is a "Compare with" option.  Choose "Each other" from the "Compare with" option.  The "Compare Viewer" will pop up with a side-by-side comparison of the 2 files.

    Best regards,

    Janet

  • Hi Hunk,

    How to add UIA to your project.

    1. Make sure you have UIA installed.  I think you already have UIA installed, since you were using it in one of your other forum threads.  But, if not, you can get it through CCS from the "App Center" (In CCS, select "View" -> App Center.  You can also download it here:

    2.  Add UIA to your project:  Right-click on the project name in the CCS Project Explorer.  Select "Properties" from the menu that pops up.  Under "General", select the "Products" tab and check the "System Analyzer (UIA)" box.   Here is a picture:

    Best regards,

    Janet

  • hi janet
    thank you very much
    but I use c2000 , there isn't "products" shows. just "RTNS" , by the way , App_center has no UIA component now . you can check out.
  • Your project properties should still have a "Products" tab under "General" as in the screen shot from my previous post.  It shouldn't matter that you are using C2000.  What version of CCS are you using?  Can you post a screen shot of the project's properties under "General"?

    Best regards,

    Janet

  • hi janet:

    this is screen shot:

    i want to know , if c2000 RTOS does need UIA component any more . ?  why App_center  hasn't UIA  recently?

  • hi, i have done

    thanks very much!

    best regard!

  • I think you have an older version of CCS, which is why your are seeing "RTSC" instead of "Products".  Also, since you are using TIRTOS, you actually don't need to check the UIA box, since UIA is part of TIRTOS.  In my case, I was using SYS/BIOS instead of TIRTOS, so I needed to check the UIA box.

    I'm glad to hear it's now working for you.

    Best regards,

    Janet