Currently, when Tardis boots up for the first time, it creates afile system on the 64 MiB QSPI flash of the discovery kit. This file system has no initial data put into it yet, so if you wish to do this, follow this guide.
To put Tardis in USB mass storage mode, perform the following:
sudo /path/to/littlefs-fuse/lfs --block_count=16384 -o allow_other /dev/sdX /path/to/your/chosen/mountpoint
After this, command such as df -h
should report a new mount, like so: lfs 64M 8,0K 64M 1% /mnt/tardis
You can copy and create new files as you normally would. Once you are done, please run the sync command before unmounting the file system: sudo sync && sudo unmount /path/to/your/mountpoint
.
It is worth noting that although littlefs is a file system which is resistant to data corruption, it is best to still follow those practices.
Finally, press the user button again to exit the USB mass storage mode and go back to the main loop of Tardis.