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.

TDA4VM: How to use timer manager?

Part Number: TDA4VM

Hi Ti experts,

I want to use timer manager in the project, but there is very little information about how to use it.

Could you give me some examples for the module of timer manager ?

Best regards

weipeng

  • Hi Li,

    Which timer manager do you mean here? Can you please provide more info?

    Regards,

    Brijesh

  • Hi Brijesh

    Timer manager in NAVSS.

    I found the driver about the timer manager in "pdk_jacinto_08_02_00_21/packages/ti/csl/src/ip/timer_mgr/V0", but I don't know how to use it , and there is no example, so maybe you can give me more information about this ?

    best regards,

    weipeng

  • Hi Weipeng,

    There is currently not an explicit example or driver for TimerMgr available on QNX as part of the the TI PSDK QNX 8.2 offering.   The PSDK RTOS as you have listed above, does have the base driver, which can be ported to QNX, but does not have an example application using the base driver.

    ti-processor-sdk-rtos-j721e-evm-08_02_00_05/pdk_jacinto_08_02_00_21/packages/ti/csl/src/ip/timer_mgr/

    In regards to example code, please reference below thread, which has some suggestions:

    (+) TDA4VM: example application of TimerManager module in TI-RTOS - Processors forum - Processors - TI E2E support forums

    Regards,

    kb

  • Hi

    I can't find the function TimeSyncPtp_createPtpTasks() form AM3 and AM5 PDK, can you tell me where should I download the pdk as you said.

  • Hi Weipeng,

    Regarding timermgr, the csl_timer_mgr.h header file does contain the below instructions on usage:

    * The following sequence of API calls must be followed to properly configure
    * and initialize the timer_mgr.
    *
    * 1. Allocate and initialize a #CSL_TimermgrCfg structure. A pointer to this
    * structure must be passed to every API function.
    *
    * 2. Set the maximum number of timers to be monitored by calling the
    * #CSL_timermgrSetMaxTimers function.
    *
    * 3. Write initial counter setup values to the desired timers by calling the
    * #CSL_timermgrSetTimerCnt function for each timer. All timers that will
    * be used initially must have a setup value written to them before the
    * timer_mgr is enabled.
    *
    * 4. If timer events are desired, call the #CSL_timermgrSetEventIdx function
    * to configure the event index for each desired timer.
    *
    * 5. Enable the desired timers. There are two ways to do this:
    * a) To enable all timers, call the #CSL_timermgrEnableAllTimers function.
    * This will enable all timers from 0 .. #CSL_timermgrGetMaxTimers.
    * b) Enable (or disable) individual timers by calling the
    * #CSL_timermgrSetTimerEnable function for each timer.
    *
    * If less than half of the available timers are to be enabled initially,
    * it is faster to enable individual timers by calling
    * #CSL_timermgrSetTimerEnable with bEnable=true. If more than half of the
    * available timers are to be enabled initially, it is faster to call
    * #CSL_timermgrEnableAllTimers and then disable specific timers by calling
    * #CSL_timermgrSetTimerEnable with bEnable=false.
    *
    * 6. Enable the timer_mgr by calling the #CSL_timermgrSetEnable function
    * with bEnable=true.
    *
    * Once the timer_mgr has been configured and enabled, the following functions
    * can be called to service the active timers:
    * #CSL_timermgrIsTimerExpired
    * #CSL_timermgrGetExpiredTimers
    * #CSL_timermgrTouchTimer

    Will get back to you on an existing R5 example.

    Regards,

    kb

  • Hi Weipeng,

    I can't find the function TimeSyncPtp_createPtpTasks() form AM3 and AM5 PDK, can you tell me where should I download the pdk as you said.

    Looks like this has been removed from the latest releases. You can find it in some of the previous releases. Attaching the zip file here timeSync.zip

    If you need the complete SDK, you should be able to find it in the SDK rpovided https://www.ti.com/tool/download/PROCESSOR-SDK-RTOS-AM65X/08.01.00.11 

    Regards,
    Parth