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.

DM385: How to set MCFW Time (for Timestamp)

Part Number: DM385

Hi Everyone,

Does anyone know how to adjust the timestamps coming from MCFW to use the system time? For example, in my usecase, my camera frames are getting encoded to h264 and then sent to the host processor via the IpcBitsInLink link. In my callback for that link, I use IpcBitsInLink_getFullVideoBitStreamBufs to get a list of buffers that contain encoded frames and part of the buffer's information is a timestamp.

From what I can tell, for the Camera link, this timestamp comes from Utils_getCurTimeInMsec(), which gets the time from Timestamp_get64 & Timestamp_getFreq. These functions come from the XDC runtime from what I can tell and I believe they are getting the current running time from a cpu timer register.

Is there any way of setting this timestamp to correlate with the linux system time?

Thanks!

  • Hi,

    Please check the implementation of OSA_getCurTimeInMsec() API.

    This API is for HLOS side.

    After getting getting your encoded buffer from  IpcBitsInLink_getFullVideoBitStreamBufs , You can modify the timestamp using the above api to get the arm clock.