Home > other >  STM32 TF card back to normal with Fatfs file system, speaking, reading and writing is written into t
STM32 TF card back to normal with Fatfs file system, speaking, reading and writing is written into t

Time:12-30

STM32f103 development board, with TF card to return to normal Fatfs file system, speaking, reading and writing is written into the data, the program USES is grasp fire "SDIO - Fatfs transplantation with reading and writing test routines, TF card is 32 g

The program is shown in figure:


Use a serial port output information:


USB simulation open U disk TF card is only an empty file:

CodePudding user response:

Finished f_write f_close first, and then f_open to read, or the first f_open open at a time in the form of reading and writing

CodePudding user response:

After f_write didn't shut down, the cache of stream in the f_open was clear off, so read an empty file,

CodePudding user response:

Upstairs positive solution, superior

CodePudding user response:

Hello, successful output may have a look?
Use f_write write on my side, every time to write several Spaces, and then if is added \ r \ n, every time more than empty a line, what is this excuse me?