Page 1 of 1

FAT and file name length problem

Posted: Fri Oct 10, 2014 1:50 am
by mikn
When I create full length name "FILENAME.TXT" it resets the chip (pic24) and does not create anything.
Once I remove one symbol and create "FILENAME.TX" or "FILENAMETXT" - it's ok.

Re: FAT and file name length problem

Posted: Fri Oct 10, 2014 9:54 am
by Benj
Hello Mikn,

Please can you try this. I have increased the size of the filename string buffers by one byte which should always allow the null termination to be inserted into the filename string.
FAT.fcpx
(62.79 KiB) Downloaded 230 times
Still trying to find some time to investigate your concurrent file problem.

Re: FAT and file name length problem

Posted: Fri Oct 10, 2014 6:45 pm
by mikn
fixed. thanks.

Re: FAT and file name length problem

Posted: Mon Oct 13, 2014 7:38 pm
by mikn
The problem appeared again from the other side:
When I set extension in filename to 2 letters, then create file via FAT component - the file is not readable. Name exists on the disk, but Windows says "Can't open file, file doesn't exist". Once I create file with 3 letters in ext, it opens ok.