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.

MSP430FR5994: Real time clock and SD card file time stamps and the outofbox example

Part Number: MSP430FR5994

Hi

I am trying to use the "outofbox" example for the msp430FR5994 using the CCS compiler and launch pad in standard form to learn to write data to the sd card using the example libraries.

The SD card time stamps are incorrect they don’t take the initialising values set in Init_RTC()

I have commented out the code to reduce it to just creating a directory, file and configure the clock and RTC. The directory and files are created ok.

The SD card time stamp is not updated or set correctly although I can get it to match the Values set in Init_RTC by running init_RTC once and then restarting the micro.

I guess I am doing something very simple wrong but I just cannot find what it is please help I have searched the forums and have not found a solution that works from users with similar issues 

  • Do you mean the saved time in SD card don't follow the RTC? 

    I think there may some problem with this part code:

    Can you do some debug by yourself. On my hand, I don't have such setup.

  • Hi,
    Yes, the saved time does not follow the RTC

    I also can not directly seem to set/ modify the saved time of the directory or file .
    (without changing it then restarting the program with out referencing it)

    I have tried just priming the calendar variable with and without initialising the RTC

    Really appreciate any help i can get with this as i would really like to use the library functions. especially as they are almost working how we need.

  • Can you debug like this: You can just input a number to see if "SDCardLib_setRTCTime" can save it as calander.

    The driverlib is open source. I think you can easily find the source code.

  • I have gone through the source code and can now modify the date and time by modifying get_fattime() I can't repeat some of the issues I was having so am going to assume it was the old SD card just need to sort the RTC the example is a bit glitchy ...

    Thanks for your help

**Attention** This is a public forum