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: TI_RTOS clock & timermap operation issue

Tool/software: TI-RTOS

hi

when I stude ti_rtos clock module and timermap lab  ,  I meet problem:

first :

this is my reading paper:

but result of my imported example from ti support lab7  , LED blink at 500ms once a time  I see.  but in graphic . shows :

I don't know where is wrong which my configuration about . please check it .

thanks !  

this is my program:Copy of blink_C28x_CLK.zip

please help

best regard 

hunk

  • HI:

    another question abot ti_rtos,

    when I import  ti suport  c28XX lab6 and lab7 , I met RTSC setting problem :

    when I built , there are warnings show:

    Do I some components need add from CCS App Center?

    best regard 

    hunk 

  • Hi Hunk,

    Regarding your first post, the 1000 us you measured between Swi posts, is the time between two Clock timer tick Swi posts.  The Clock timer interrupt occurs every 1 msec and posts the Clock Swi.   Your Clock function for blinking the LED is called every 500 msecs, so it will be very difficult to find it in the execution graph.  You could try changing the period of ledToggleClk to a smaller number (e.g. 5), so you can find it in the execution graph.  You won't be able to watch the led blink, though, since it is too fast.

    You can also use UIABenchmark to measure the time taken to toggle the LED.  Just add the following line to your .cfg file:

        LoggingSetup.benchmarkLogging = true;

    Add the following include to your .c file:

        #include <ti/uia/events/UIABenchmark.h>

    Add benchmarking around the GPIO write:

            Log_write1(UIABenchmark_start, (IArg)"LED_toggle");
        GpioDataRegs.GPBTOGGLE.bit.GPIO34 = 1;                          // Toggle GPIO34 (LD2) of Control Stick
        Log_write1(UIABenchmark_stop, (IArg)"LED_toggle");

    I changed the period of the ledToggleClk to 5 in the .cfg file and I get the following execution graph:

    Regarding your second post, it looks like the project you downloaded was using a different version of BIOS than what you have installed.  It is actually using the BIOS from TIRTOS.  I don't think that should be a problem, though.  Maybe you can try just unchecking those boxes in "Other repositories".

    Best regards,

    Janet

  • thanks janet:

    but there is a problem here:

    I don't know how.

    best regard

    hunk

  • hi:

    this is my program:

    Copy (2) of blink_C28x_CLK.zip

    best regard

    hunk

  • Hi Hunk,

    It looks like you forgot to add this line to your .cfg file:

        LoggingSetup.benchmarkLogging = true;

    Best regards,

    Janet

  • HI janet
    I added it . please look my program again.
    best regard
    hunk
  • HI, janet:
    I got it , thanks again
  • Glad to hear it's working now.

    Best regards,

    Janet