Hello zhixiang,
Just do this modification:
1. open ffconf.h
Line 50, change _USE_MKFS to 0.
Disable f_mkfs function
2. New test result
This is my test result in the SD card.
After point 1 modification, build and download it to the board again.
You can find the folder test and test.txt still exist.
You can try it on your side.
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello zhixiang zeng,
Do you use the official KSDK sd sample code directly on LPC54608 board?
Could you give me the details steps which can reproduce your problem? Then I can check and test it on my side.
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi,there are 1 file and 1 folder existed my SD card .When after I run the examples "SDK_2.2_LPC54608J512\boards\lpcxpresso54608\driver_examples\sdcard_fatfs",the both DIR1 and DIR2 succeeded
but the file test and folder test have been erased.There are only the DIR_1 created by the fatfs.
Hi Zhixiang,
Just as I have told you, f_mkfs function will do the disc format, more details please check this link:
Wish it helps you!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello zhixiang,
Just do this modification:
1. open ffconf.h
Line 50, change _USE_MKFS to 0.
Disable f_mkfs function
2. New test result
This is my test result in the SD card.
After point 1 modification, build and download it to the board again.
You can find the folder test and test.txt still exist.
You can try it on your side.
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Zhixiang,
You are welcome!
If your problem is solved, please mark the correct answer to close this case, thank you and have a nice day!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Zhixiang,
I already reproduce your problem, and I am working on it, it needs time to process it.
f_mkfs function will delete all the file in the SD card. I am still checking it.
Any updated information will let you know, please wait patiently now.
Thanks a lot for your understanding.
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------