SD card file create and write using FATFS #498
Unanswered
Firmpact
asked this question in
Bare metal embedded software
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi team,
I am using Polarfire SOC discovery board MPFS095T.
We are trying to create and write file on SD card using FATFS library.
Take the eMMC example from https://github.com/polarfire-soc/polarfire-soc-bare-metal-examples/tree/main/driver-examples/mss/mss-mmc/mpfs-emmc-fatfs
Modify it to create and write a file on an SD card.
I have attached the e51 file and sd card communication file for communication with the SD card.
There is no error in the flow of code execution. We successfully created and wrote content to a file on the SD card.
However, after closing and unmounting the SD card and then connecting it to the system, no file appears to have been created.
I placed a text file on the SD card and tried to read its contents through code.
The code executed successfully, reading and displaying all contents of the SD card.
Help me to resolve the issue.
Regards,
Firmpact
e51.c.txt
sd_if.c.txt
sd_if.h.txt
Beta Was this translation helpful? Give feedback.
All reactions