FAT and file name length problem

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
User avatar
mikn
Posts: 209
Joined: Mon Mar 03, 2014 10:11 pm
Has thanked: 54 times
Been thanked: 41 times
Contact:

FAT and file name length problem

Post 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.
FC 6.1.3.2 (18.02.2016)

User avatar
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

Post 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.

User avatar
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

Post by mikn »

fixed. thanks.
FC 6.1.3.2 (18.02.2016)

User avatar
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

Post 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.
FC 6.1.3.2 (18.02.2016)

Post Reply