8 years ago.

Date on File System

Dear all, I own LPC1768 mbed. I am trying to use the LocalFileSystem but I cannot make it write the correct date, it always shows 01/01/2008 12:00. I set the date and time and I can write it correctly as data in the file (for example: as a timestamp along with other data), the problem is with the date of the file itself (the date that appears in a directory listing). I supposed that date and time are added automatically to the file name (like when you save a file PC) but perhaps I am missing to set something up. I have not found a command to read from the LPC1768 the date and time of files stored in the LocalFileSystem from the PC (with correct date and time). Thank you in advance. Best regards

1 Answer

8 years ago.

I believe LocalFileSystem (contrary to FATFileSystem, which is used for example for SDFilesystem) does not support timestamps in what is written by the MCU on it.

Accepted Answer

Thank you Erik. Is it possible to write code for the LPC1768 to support it or the limitation is somehow related to the communication protocol with the mbed interface chip (which itself knows the date because it uses to determine which is the ".bin" which is flashed into the LPC1768 at boot-up)? Best regards Daniel

posted by Daniel Bonafede 30 Mar 2016

The filesystem itself indeed supports timestamps, it is part of the fat definition. I think it is the communication protocol between the LPC1768 and the interface chip that limits this, that LPC1768 sends the data over to be written on the FileSystem, but that the interface chip does the actual FAT handling. Contrary to SDFileSystem for example which does the FAT handling itself.

posted by Erik - 30 Mar 2016