Author Topic: SD-CARD  (Read 17979 times)

Offline fabio

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • bandaspilamberto
SD-CARD
« on: July 30, 2007, 04:40:08 PM »
Hello
I have a communication with SD-card with FAT and bootloader too to do with M52233.
if someone has some libraries that I can use to start..will be very appreciate...

best regards

Fabio

Offline fabio

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • bandaspilamberto
Re: SD-CARD
« Reply #1 on: August 01, 2007, 07:46:01 AM »
I have found an interesting library in sourceforge.net
"efsl.0-2-8"
The library currently supports FAT12/16/32 reading & writing on SD-cards, I try to use this and convert for codewarrior..
Regards
Fabio

Offline fabio

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • bandaspilamberto
Re: SD-CARD
« Reply #2 on: September 21, 2007, 12:47:54 PM »
I have finished with the SD-CARD.
If someone is interested he can found all at
http://sourceforge.net/projects/efsl/

with described all in this post
"EFSL with FREESCALE 52233 and Codewarrior"

best regards
Fabio

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3236
    • View Profile
    • uTasker
Re: SD-CARD
« Reply #3 on: September 21, 2007, 08:22:55 PM »
Hi Fabio

Congratulations on your work.
I checked the forum thread (http://sourceforge.net/forum/forum.php?thread_id=1813675&forum_id=447844) and will also mention your work to other interested users.

Thanks

Regards

Mark

Offline fabio

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • bandaspilamberto
Re: SD-CARD
« Reply #4 on: November 14, 2007, 09:27:48 AM »
Now I have the time to continue my work with sd-card...
I have to do the sd-card bootloader.
I think I can use the SPI EEPROM file system to start but instead of the spi EEPROM I use the spi sd-card.
A first problem is that at the start of the bootloader it looks for a new file in the sd-card with fat32 so I have to add the 18k of the sdcard file system in the utasker-boot and add 18k to the flash2 in the .lcf file.

Then I have to understand very well how the bootloader works... I try now..but for me is very difficult...

Please MArk, if you have some suggestion please give me.. if you think this is a wrong way...

thank you very much and best regards
Fabio

Offline neil

  • Sr. Member
  • ****
  • Posts: 438
    • View Profile
Re: SD-CARD
« Reply #5 on: November 18, 2007, 02:35:49 PM »
HI,
  I am interested in having a look at an SD card, and cant find anything that describes the layout and programming of one. Can anyone point me to a site with thisinfo?

Regards
Neil

Offline fabio

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • bandaspilamberto

Offline neil

  • Sr. Member
  • ****
  • Posts: 438
    • View Profile
Re: SD-CARD
« Reply #7 on: November 21, 2007, 03:12:59 PM »
Hi Fabio,
  Thanks very much for the links.

Neil

Offline neil

  • Sr. Member
  • ****
  • Posts: 438
    • View Profile
Re: SD-CARD
« Reply #8 on: August 18, 2008, 07:40:54 PM »
Hi Neil
You can find a lot of information in the link
http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/efsl_arm/index.html
http://sourceforge.net/forum/forum.php?forum_id=447844

specificattions are in
http://www.sdcard.org/about/memory_card/pls/Simplified_Physical_Layer_Spec.pdf

best regards
fabio

Hi Fabio,
 I have been trying with no luck to communicate with an SD card using the SPI bus. After power is supplied I send it 0x40 0x00 0x00 0x00 0x00 0x95 to send it into spi mode, and whiche the chip select is low, I send it 0xff tillI get a reply.

I have stuck it on the logic analyser, and all the signals look perfect, except I dont get anything from the SD card ack. in spi mode. So I failed at the first hurdle.

Did you program it with spi mode? If so, how did you initialise the card?

Thanks
Neil

Offline neil

  • Sr. Member
  • ****
  • Posts: 438
    • View Profile
Re: SD-CARD
« Reply #9 on: August 20, 2008, 04:00:56 PM »
Hi ,
  I got down to the root problem. I am using a micro SD card, and got some pin connections wrong .I didnt do enough search for micro SD pinouts..   :-[

Neil

Offline svl

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Re: SD-CARD
« Reply #10 on: November 12, 2008, 09:00:00 AM »
Hi Fabio,

Have implemented the use of the a FAT system using the FatFS file system (http://elm-chan.org/fsw/ff/00index_e.html).
In my effort to gain as much speed of the system as possible I was wondering when kind of transfer speed you got when accessing the card?

I have on my development board reach 341 Kbyte/s when writing and used 2048 byte of buffer.

Hope to hear from you.

Regards
Steen