Jump to content
bluehash

PetiteFS FATfs SDCard USCI code

Recommended Posts

Blue Hash, 

I proceed to some modification to write in SDcard , i will share my code hoping someone can help me.

I connect the msp430g2553, with a sdcard and a LCD, he can mount the card and recognize the disk, but do not write in the file.

Share this post


Link to post
Share on other sites

Friends

I need some help,using the petitFAT library, I managed to do the implementation in my application, but I need your help to get write to the memory card thing that I am not able to do. Can anyone help me? 

Did you follow the tutorial here. You need to create the file on the card first.

Share this post


Link to post
Share on other sites

Hello Bluehash, I follow the tutorial,  and everything seems to be ok, the file was created earlier on the card. 

The problem is that does not write on the card, I shared all my file and picture of what happens to me, hoping to get some help, that would allow me to solve the problem.

Share this post


Link to post
Share on other sites

@@bluehash I try to write my data into SD-card, but i have a problem. It overwrite the old-data in sd card, i try to using "pf_lseek(ofs);" function, but nothhing change and i can't control the pointer where i start to write the first data. And further, i can read- write data correctly without control the first byte location. Where is the mistake? Please help me!

And my project in the attach file.

Thank you!

test sd card 3.rar

Share this post


Link to post
Share on other sites

@@bluehash I try to write my data into SD-card, but i have a problem. It overwrite the old-data in sd card, i try to using "pf_lseek(ofs);" function, but nothhing change and i can't control the pointer where i start to write the first data. And further, i can read- write data correctly without control the first byte location. Where is the mistake? Please help me!

And my project in the attach file.

Thank you!

Help me, please! :sad:

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

×