cancel
Showing results for 
Search instead for 
Did you mean: 

SD card Block Write less than 512 bytes

sr_shinde
Associate II
Posted on September 11, 2008 at 07:45

SD card Block Write less than 512 bytes

7 REPLIES 7
sr_shinde
Associate II
Posted on May 17, 2011 at 09:55

HI all,

I am using 512MB SDcard of physical layer version 1.0.In CSD partial block write bit is 0,means it wont allow block write less than 512 bytes.Still it is allowing me to write block less than 512 bytes but it is not writting at the exact address given as parameter.It starts writting from the block aligned address(given address as parameter % 512).So whenever I write 4 characters from address 3.It writes 4 charactes from address 0.

Please inform me about the solution if anybody has.

Regards

Sai

ricardo2399
Associate II
Posted on May 17, 2011 at 09:55

Hi

I've used SD card and tryied to build an FAT16 fs over it, but when i write a file, PC recognize it but never find.

To it, i founda cool library (most of the work done) in ST PowerPac examples. There is a specific example for STR912-SK board to use USB and the SD card as PenDrive.

Try to find same help by using mmc.c, ssp.c and other stuff like those files.

Hope it help 🙂

dhoyen
Associate II
Posted on May 17, 2011 at 09:55

Hi,

I use a SD card on my project, as an STR912.

We use the EFSL library.

Works marvelously with FAT 12-16-32 (< 2 Gbyte)

Just to do a STR912 port, for the ARM9 SSP, ask me, i will give mine.

Regards.

Damien

sr_shinde
Associate II
Posted on May 17, 2011 at 09:55

Hi ricardo marinheiro

Thanks for reply.

I have already tried it.But it didn't help me.

Regards

Sai

rgreenthal
Associate II
Posted on May 17, 2011 at 09:55

What is the full path for ''ST PowerPac''

I am also having problems with the USB not being fast & over-running buffers for the PC

Any Ideas

I am using ''Jungo'' which worked for the Cypress chip

sr_shinde
Associate II
Posted on May 17, 2011 at 09:55

Hi dhoyen

Can you please send me the project u have done on str912 with EFSL library for SD card

Best Regards

Sai

[ This message was edited by: sr_shinde on 11-09-2008 05:57 ]

dhoyen
Associate II
Posted on May 17, 2011 at 09:55

Hi,

Here, you will find the Port (str91x_efls_spi.c and h)

Also a PULS_HAL.c and h, where is stored few fonction to init the SSP port, evaluate speed (the initialisation MUST be done with a speed < 400 Khz, after, you can increase, if success...), port config...

It's my full file, plenty of code is not necessary in your case.

Also a file with the define

Note) The RTC support have been implememted, for date/time support

Regards.