Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Help me solve my problem of writing on SD card

Status
Not open for further replies.

SWETA

Newbie level 6
Newbie level 6
Joined
Apr 17, 2008
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,394
WRITING ON SD CARD

Hi everyone,
i am working on interfacing SD/MMC card to ATmega 32..for the same i am using elm-chan's

http://elm-chan.org/fsw/ff/00index_e.html

code for implimenting the FATfile system on the card...
Now as far as creating,opening,closing and reading the file is concerned,i am successfully able to do so...but i am facing problems in writing on the file,being created on the card..
My concern is..
Does writing on the card has got to do with the card's size or with the the FATfilesystem type that is been implimented on the card.
i have formated the card in FAT12 mode through the code only..i have not formated it through PC as it missalligns sectors..
can any one suggest some way through which i can do writing on the card..
any suggestion would be a great help..
 

Re: WRITING ON SD CARD

you can use Winhex to edit removable Disk. and you can access SD Card by USB Card reader...
 

    SWETA

    Points: 2
    Helpful Answer Positive Rating
Re: WRITING ON SD CARD

hi rupesh,

thanks for the help,although i have still not checked how this software works..But,the code that i am using has a function for writing operation on the card,and it does support other functions as well for communicating with the card...all other functions are working fine,and i am using terminal Bray++software for the serial communication between card and MCu..all commands i am sending from pc through this application..

Now,you only suggest if using winhex is a good option in this case...
and then i will go ahead...
 

Re: WRITING ON SD CARD

Yes... If you are using Winhex then you only need USB Card reader to R/W in Memory card. and you can do low level format of Memory by Filling FF/00 in All Sector.

it will solve your Problem "missalligns sectors.."


"Does writing on the card has got to do with the card's size or with the the FATfilesystem type that is been implimented on the card."

Yes Minimum File Size is Depend on card Size,NO of Sector and FAT ...

https://en.wikipedia.org/wiki/File_Allocation_Table
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top