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 module timer

Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI-RTOS

I want to know what timer the clock module uses to get it's ticks?

Is it timer1 or SysTick?

if Timer1 what is the frequency timer1 is operating on?

Thanks

  • Hi Ahmed,

    What device are you on?

    Todd
  • Thanks for your reply

    I'm working on TDA3x SR2.0

  • You can look in the <BIOS_install_dir>\packages\ti\sysbios\family\arm\Settings.xs file and search for TDA3. You'll see the following:

    deviceTable["ti.catalog.arm.cortexm4"]["TDA3XX"]    = deviceTable["ti.catalog.arm.cortexm4"]["DRA7XX"];

    Then looking at the following in the same file:

       "ti.catalog.arm.cortexm4": {

           ...

           "DRA7XX": {

               hwiDelegate : "ti.sysbios.family.arm.m3.Hwi",

               timerDelegate : "ti.sysbios.family.arm.ducati.Timer",

               clockTimerDelegate : "ti.sysbios.family.arm.ducati.Timer",

               timerSupportDelegate : "ti.sysbios.family.shared.vayu.TimerSupport",

               timestampDelegate : "ti.sysbios.family.arm.ducati.TimestampProvider",

               taskSupportDelegate : "ti.sysbios.family.arm.m3.TaskSupport",

               intrinsicsSupportDelegate : "ti.sysbios.family.arm.m3.IntrinsicsSupport",

               bootModule : null,

               coreDelegate : "ti.sysbios.family.arm.ducati.Core",

               cacheDelegate : "ti.sysbios.hal.unicache.Cache",

               powerDelegate : "ti.sysbios.family.arm.m3.Power",

               secondsDelegate : null,

               mmuModule : "ti.sysbios.hal.ammu.AMMU",

               clockTickPeriod : 1000,

               targets : [ "ti.targets.arm.elf.M4", "gnu.targets.arm.elf.M4" ]

           },

    The ti.sysbios.family.arm.ducati.Timer uses the SysTick and CTM timers. You can see more details about how they are selected in the BIOS API Reference (cdoc). For example: 

    Todd