AT91RM9200 - problem with SD/MMC

Hi. I have problem with transmission between ARM and MMC/SD on my board. I tested with 16MB SD from Panasonic and 256MB Kingston MMC. Here is my board

formatting link
I use kernel 2.6.19 with patches from maxim.org.za The connections are: MMC CPU

8 -> PB3 7 -> PA29 6 -> GND 5 -> PA27 4 -> +3v3 3 -> GND 2 -> PA28 1 -> PB5 9 -> PB4 I added pullup (10k) to pin 2 of MMC/SD. Since that - kernel recognize card size, type and so on

mmc0: host does not support reading read-only switch. Assuming write-enable. mmcblk0: mmc0:5a2b S016B 14560KiB mmcblk0:mmc0: starting CMD18 arg 00000000 flags 00000035

but when I'm trying to do "cat some.img > /dev/mmc" it hangs. I use one wire interface. The last message is "Jan 1 00:11:33 (none) user.debug kernel: Handling the transmit"

Here are some extra debugs from kernel (doing cat some.img.........): What should I do ? Add more pullups to the other pins ? Other suggestions ?

--
Best regards
Pelos
 Click to see the full signature
Reply to
Pelos
Loading thread data ...

I reduced f_max MMC clock to 375kHz in kernel and added pullup to DAT - pin (7) and writes still hangs, but reading is OK. Any other suggestions ? :)

--
Pelos
http://twarm.pelos.pl
Reply to
pelos

Well - I found solution :-)

formatting link

--
Pelos
http://twarm.pelos.pl
Reply to
Pelos

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.