3074 views|5 replies

7

Posts

0

Resources
The OP
 

[Newbie help] Problems with creating multiple different files using FATFS [Copy link]

Hey guys, here are the questions:

1 For a file, follow the order of “mount workspace + open and create file + write data to file + close file + close workspace”.

2 During the operation of this file, no operation is performed on other files.

3 The problem is: at each moment when we need to record, we need to create a new file to record the data, using

res = f_open( &fsrc , "A000001", FA_OPEN_ALWAYS | FA_WRITE); to create a new file

4 FATFS says that one file corresponds to one FIL variable. In this scenario, there will be a lot of FILs. I don’t know how to handle FILs.

Do you have any reference examples? Thank you . I have been searching for a long time but couldn't find any.

This post is from Programming Basics

Latest reply

Just record them differently.   Details Published on 2020-12-2 22:25
 

7

Posts

0

Resources
2
 

Problem Solved

Experimental results show that in the process of "open workspace + open file + write file + close file + close workspace", as many FIL files are needed as there are txt texts. However, after this process is completed, the FIL variables used in the previous process can also be used in the subsequent files. Note that the file name char array should be changed before opening the workspace.

This post is from Programming Basics
 
 
 

7

Posts

0

Resources
3
 

I wanted to upload pictures, but I don't have permission.

This post is from Programming Basics
 
 
 

1942

Posts

2

Resources
4
 

Thanks for sharing the solution, I will have the permission after posting more!

This post is from Programming Basics
 
 
 

994

Posts

3

Resources
5
 

A forum member who loves to study

This post is from Programming Basics
 
 
 

7422

Posts

2

Resources
6
 

Just record them differently.

This post is from Programming Basics
 
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list