Page 1 of 1

mmc over spi

Posted: Sun Sep 25, 2011 8:40 pm
by darknoobie
i was wondering if anyone could point me to a schematic on connecting a sd card to spi port. im trying to write a file to my sdcard using chibiOS

Re: mmc over spi

Posted: Sun Sep 25, 2011 9:05 pm
by Giovanni
Hi,

You may examine the schematic of an existing board, try on www.olimex.com, the STM32-P103 board for example.

Giovanni

Re: mmc over spi

Posted: Mon Sep 26, 2011 4:40 am
by darknoobie
ty so much. i wish yall know how much chibiOS has helped me. I recently suffered from depression. And playing around with chibiOS and how awesome it is has kept my mind off things. Easy to use and powerfull :D

Re: mmc over spi

Posted: Mon Sep 26, 2011 12:42 pm
by darknoobie
Also I forgot to mention Im using the stm32100rb. Is the mmc driver designed to work on spi1 or spi2? And i changed:
#define HAL_USE_MMC_SPI TRUE

Re: mmc over spi

Posted: Mon Sep 26, 2011 12:59 pm
by Giovanni
You can use any SPI port supported by the SPI driver (just enable it in halconf.h and mcuconf.h).

Giovanni

Re: mmc over spi

Posted: Wed Oct 12, 2011 6:14 am
by darknoobie
I forgot to ask. when interfacing the stm32 discovery board via spi2. Which pin is the chip select

Re: mmc over spi

Posted: Wed Oct 12, 2011 7:47 am
by Giovanni
Hi,

You can use any GPIO pin as chip select.

Giovanni