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/MSP432P401R: RTC implementation based on RTOS

Part Number: MSP432P401R


Tool/software: TI-RTOS

Hi Team,

I have written firmware so that triggering of particular event makes a particular device write file on the SD card and second event that reads that file and sends that to radio device using SPI communication.

I need to know what time the file was written on the SD card.

For this I have used the Seconds_set(value) and Seconds_get() functions.

However, this gives me the data and time relative to the value implemented in the Seconds_set(value) function.

But what I need is the real time information and not the relative time information.

How can I get that?

I have the firmware based on the RTOS concept.

Your inputs will be valuable.

Thank you

Vikram

  • Vikram,
    Are you getting the time from the radio? TI-RTOS gives you a means to manage time, but you will still need to enter it either manually or from the network time protocol. I have asked for some assistance to determine how this would be done.

    Regards,
    Chris
  • Thank you Chris for the reply.

    I am not getting the time from the radio. At present I am purely using the set_time and get_time functions on the MSP432. The get_time function is called as soon as some data is written on SD card by other device.

    But as I mentioned the time is always relative to the one I set at the start of the firmware.

    Will wait for your response.

    Thank you.

    Vikram

  • Vikram,
    I have been only been able to glean the following:

    "This is a general system issue. TI-RTOS gives you a way to manage it(time) once you have the wall-time, but cannot get it for you initially. He needs to get the "wall" time somehow though. This is generally done by NTP/SNTP (Network Time Protocol or Simple Network Time Protocol) or the user has to enter it somehow."

    Regards,
    Chris

**Attention** This is a public forum