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.

AM6548: Read system time in PRU

Part Number: AM6548

Hi TI,

I need to get the Linux system time in PRU, means I want to read the time in PRU .TI Linux running on AM6548 controller . 

The idea here is to timestamp the ADC data that is available in PRU.

Any API that can read the system time will help us. Or any API in R5 controller to read Linux (running on A53) time can be of helpful.

Thanks,

Sarfaraz

  • Hi Sarfaraz,

    >The idea here is to timestamp the ADC data that is available in PRU.

    Do you want to timestamp the data in terms of System time or the time available in PRU (IEP) ? they can be same or different based on whether you have implemented PTP or not.

    There is HW support available to timestamp events using IEP but I don't think there's an easy way to timestamp them using the Linux system time, that would have to be done in software.

    The correct way to do this is to keep the IEP and System in sync (with or without a fixed offset) and then use IEP to timestamp events.

    Regards

    Vineet