shahabamo

microSD write issue

4 posts in this topic

Hi.

I have ported my custom board to designlab and have run various desginlab examples on it. One problem I could not solve yet is writing files to SD card usign SD examples. The sd card could successfully being initialized and even list the files inside it. but the file open and write fails. any suggestion to solve this is appreciated! 

Share this post


Link to post
Share on other sites

any body had tested microSD wing, please let me know if there is any special trick here.

regards,

Share this post


Link to post
Share on other sites

Not that I know of. It should work flawlessly out of the box.

Note that often "writing" is disabled, to save code space.

What issues are you encountering ? Only write not working?

Alvie

Share this post


Link to post
Share on other sites

Alvie,

thanks for the replay,

yes, Only write is not working. I am able to read the files easily. but I cant open any file for writing.

for instance, the "readwrite" example initializes the SD successfully, but it fails at "opening test.txt" step. Although If I manually create the "test.txt" file on the microSD (by connecting it to my PC via a memory-reader), It passes the write step (no write actually!) and reads the contents of test.txt successfully!

Quote

Note that often "writing" is disabled, to save code space

I didn't know that at-all! How can I enable it? 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now