Quantcast
Channel: Embedded Software (Read Only)
Viewing all articles
Browse latest Browse all 25965

Forum Post: FATfs fopen() creates new file with wrong file name

$
0
0

Hello Everyone!

MSP430f5438A

tirtos_msp430_2_00_02_36

micro SDcard 64GB (UHS-I card) filesystem: FAT32

I am having issue with fopen() function. The first fopen() function call to create a new file, creates a file with wrong filename. e.g: if I want to create file with name "arslan.txt", then it creates the file with name "rrslan.txt".

So it replaces the first letter of the name with the second letter. And this only happens for the first file.

And for the 2nd and third file, sometimes it adds an extra "0" in the name with a space. e.g: for "arslan.txt" it creates "arslan 0.txt"

Other functions fwrite() fclose() works.

Can anyone please help me out?

Thanks!

Arslan

 


Viewing all articles
Browse latest Browse all 25965

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>