Jan:
Thank you for your comments. I’m using a downloaded version of the MBED OS, version is 5.14.1, on the online compiler. The code I am using is the one you linked above, based on the LittleFileSystem. I did not see the comment on using the FatFileSystem instead and will try that.
Thanks again.