MMC Over SPI Troubles With Embest Board

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
abbyj
Posts: 6
Joined: Mon Aug 12, 2013 4:11 am

MMC Over SPI Troubles With Embest Board

Post by abbyj »

Hi Gents,

I've tried compiling the demo for the STM32F4 and have updated my board files (Thank you Tectu for your help with the board files!), but I am still not able to access the SD card. :oops: I have tried a SanDisk 4GB and a Crucial 1GB.

Where else should I be looking to find my problem? Is there a setting that needs to be TRUE/FALSE in order for it to work? It appears that the InsertHandler/RemoveHandler is not running. Is there a particular frequency that needs to be set for it to work?


Thank you very much in advance for your help!

Jason
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: MMC Over SPI Troubles With Embest Board

Post by Giovanni »

Hi,

In order to make those handlers work, you must provide the card detect code for your board in board.c.

Giovanni
resset
Posts: 32
Joined: Thu Dec 20, 2012 11:57 pm
Has thanked: 2 times
Been thanked: 1 time

Re: MMC Over SPI Troubles With Embest Board

Post by resset »

On Embest board there is a GPIOB_PIN15 that is connected to ~CD of the card, so it should work as a card detect, only negated. It is not configured in Tectu's board files, however. Should be sth like this: GPIOB_SD_DETECT.
User avatar
Tectu
Posts: 1225
Joined: Thu May 10, 2012 9:50 am

Re: MMC Over SPI Troubles With Embest Board

Post by Tectu »

Can you please upload a .zip of your code containing your board files? There are different versions of Tectu's board files out there. I will try to get a final one together this weekend.


~ Tectu
resset
Posts: 32
Joined: Thu Dec 20, 2012 11:57 pm
Has thanked: 2 times
Been thanked: 1 time

Re: MMC Over SPI Troubles With Embest Board

Post by resset »

Tectu wrote:Can you please upload a .zip of your code containing your board files? There are different versions of Tectu's board files out there. I will try to get a final one together this weekend.

If you asked about mine, I attach them below. :-)
Attachments
EMBEST_DMSTF4BB.zip
(9.89 KiB) Downloaded 513 times
Post Reply