emFile long file names

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
DaSi_281136
Level 3
Level 3
25 replies posted 10 replies posted 5 replies posted

I'm trying to get a PSOC5LP to read an SD card.
I followed the instructions in the data sheet and am able to read/write from/to the sd card successfully.
The problem is that I'm trying to use the "emf32noslfn" library but I keep getting truncated file names (8 chars) when using the FindFirstFile / FindNextFile functions.

   

Any help would be appreciated.

0 Likes
5 Replies
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Without the project to look at hard to judge whats going on.

   

 

   

Possibility your have not cast a variable to the correct size in the code ?

   

 

   

Consider posting your project, makes life easier to troubleshoot.

   

 

   

“File”                                                             Creator

   

“Create Workspace Bundle”

   

 

   

 

   

Regards, Dana.

0 Likes
lock attach
Attachments are accessible only for community members.
DaSi_281136
Level 3
Level 3
25 replies posted 10 replies posted 5 replies posted

Here's a test project.

   

 

   

Thanks.

   


Dan

0 Likes
lock attach
Attachments are accessible only for community members.
DaSi_281136
Level 3
Level 3
25 replies posted 10 replies posted 5 replies posted

Added the "emfile_V322c" file to the zip archive file.

0 Likes
DaSi_281136
Level 3
Level 3
25 replies posted 10 replies posted 5 replies posted

I figured it out.
I had to add "FS_FAT_SupportLFN();" to the init section of the code before calling "FS_Init();"

0 Likes
Anonymous
Not applicable

I spent a day trying to figure this out! I should have just googled it right away... Thanks kokovec!

0 Likes