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.

How to set system time for TDA4 device.

Hi TI teams:

I want to set system time and get system time for TDA4.

Could you show me how to do it?

  • Hi,

    Can you please add some additional detail into the question.  

    For example are you asking about how an HLOS such Linux is tracking time on the A72 or FreeRTOS on R5 core, or are you interested in exploring H/W features such as The Global Timebase Counter (GTC), a continuous running counter that can be used for time synchronization (TRM Section 12.10.1.1 GTC Overview)

    Thanks,

    kb

  • HI, KB:

    base:QNX+RTOS

    ① What's the difference between 11. Time Sync and 12. GTC ?

    ② How to set date and time for TDA4 ?   for example I want to set date and time to 2022/03/14,  15:30 .   is there any API for this ?

    ③ time synchronization ,for A72 and R5, is there any example?

    thanks!

  • HI, KB:
    How about these questions?
    thanks!

  • Hi,

    --1--

    Regarding Time Sync (CPTS) vs. GTC:

    The CPTS IP provides IEEE 1588 Time Sync Protocol Support for multiple Ethernet Ports and is used to facilitate host control of time sync operations. The CPTS collects time sync events and then presents them to the host for processing. There are six types of time sync events (Host Transmit Event, Ethernet receive event, Ethernet transmit event, time stamp push event, time stamp rollover event, and time stamp half-rollover event). Each Ethernet port can cause transmit and receive events. The time stamp push is initiated by software. This IP supports the selection of up to 32 external clock sources. It provides for software control of time sync events via interrupt or polling.

    The GTC module provides a continuous running counter that can be used for time synchronization and debug
    trace time stamping.

    --2--

    For the setting of date and time the QNX documentation should be referenced.  The clock_settime() is a good place to start, and links to - Other clock sources (qnx.com), and further time related documentation from QNX.

    --3--

    There is documentation available in the SDK releases.   For SDK 8.1, link is  TimeSync Design Overview.

    Regards,

    kb