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.
FAT and file name length problem
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: FAT and file name length problem
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.
Still trying to find some time to investigate your concurrent file problem.
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.
Still trying to find some time to investigate your concurrent file problem.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- mikn
- Posts: 209
- Joined: Mon Mar 03, 2014 10:11 pm
- Has thanked: 54 times
- Been thanked: 41 times
- Contact:
Re: FAT and file name length problem
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.
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.
FC 6.1.3.2 (18.02.2016)