Search found 3 matches

by m20ks
Sun Mar 24, 2024 11:49 am
Forum: General discussion
Topic: STM32SD adjust file timestamps?
Replies: 4
Views: 1698

Re: STM32SD adjust file timestamps?

Thank you for your reply! It appears that implementing the basics was less challenging than expected. Within the context of FatFs, when only declaring the following in global, the 'creation date' of every new file is being successfully updated (in this test, to the 1st of January 2000). DWORD get_fa...
by m20ks
Sun Mar 17, 2024 7:53 pm
Forum: General discussion
Topic: STM32SD adjust file timestamps?
Replies: 4
Views: 1698

Re: STM32SD adjust file timestamps?

Something I'll spend more time on coming week, but together with the SDFat library the following callback seems to work: void dateTime(uint16_t* date, uint16_t* time, uint8_t* ms10) { DateTime now = rtc.now(); // Return date using FS_DATE macro to format fields. *date = FS_DATE(now.year(), now.month...
by m20ks
Sun Mar 17, 2024 2:02 pm
Forum: General discussion
Topic: STM32SD adjust file timestamps?
Replies: 4
Views: 1698

STM32SD adjust file timestamps?

So far I've successfully implemented file writing to my SD card using the STM32SD library. However, the timestamp for file creation and modification defaults to 1 January 1970 at 01:00 (UNIX time +1 hour?). I tried the STM32RTC library for setting the internal clock ( rtc.setEpoch(1710682932) ) and ...

Go to advanced search