Hi,
I'm trying to deal with a weird issue regarding writing files to an SD card. I am restructuring my project to be more maintainable, which means moving some things over from the src directory to drivers (T2 topology). I have a couple working drivers, so I'm familiar with how it works, but when I do the same thing with my custom SDHC driver (drv_sdhc), I'm getting some weird behavior that I cannot find the root cause of. Essentially, when creating a file or directory with a name longer than 10 characters and list the files on the SD card after, I see that the newly created file is in SFN format (e.g. RECORD~1 for a directory that should be recording_01). When loading that SD card on the PC, it also has the same SFN name.
The weird thing is, when I copy the exact same file to put it in src and make sure to not build the driver file but the src file (keeping all other configs etc. the same, CONFIG_FS_FATFS_LFN=y for both cases), everything works as expected. What could be causing this? Am I missing something here?
Best,
Wout