SDIO port to STM32F4x

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
Post Reply
User avatar
barthess
Posts: 861
Joined: Wed Dec 08, 2010 7:55 pm
Been thanked: 7 times

SDIO port to STM32F4x

Post by barthess »

Giovanni,
are there any plans of porting this feature? I have take a short look on MCUs' documentation. Seems like SDIO very similar (or identical) on F1x and F4x. So code need just DMA related parts rework. I can try to do that job after the finalizing of I2C.
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: SDIO port to STM32F4x

Post by Giovanni »

It is planned but I don't have hardware to test it, could you help with this?

Giovanni
User avatar
barthess
Posts: 861
Joined: Wed Dec 08, 2010 7:55 pm
Been thanked: 7 times

Re: SDIO port to STM32F4x

Post by barthess »

I have microsd socket on my board and can help with coding and testing.
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: SDIO port to STM32F4x

Post by Giovanni »

Ok, go ahead (I saw you already branched anyway :-)).

After I2C and this one it is 2.4.0 time.

Giovanni
Jacon
Posts: 143
Joined: Wed Dec 08, 2010 7:52 am
Has thanked: 50 times
Been thanked: 5 times

Re: SDIO port to STM32F4x

Post by Jacon »

User avatar
barthess
Posts: 861
Joined: Wed Dec 08, 2010 7:55 pm
Been thanked: 7 times

Re: SDIO port to STM32F4x

Post by barthess »

@Jacon,
thanks for useful links.

@Giovanni,
how deeply you tested SDIO driver for F1x? I am not sure that driver will be ready in January.
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: SDIO port to STM32F4x

Post by Giovanni »

The SDIO passed the test application and worked with FatFS (there is a demo for the STM32F107 and FatFS). If it will take too long we will simply skip 2.4.0 and put it in 2.4.1.

There were reports of strange behavior but the person stopped caring, it would be a good idea to test it more deeply anyway.

Giovanni
User avatar
barthess
Posts: 861
Joined: Wed Dec 08, 2010 7:55 pm
Been thanked: 7 times

Re: SDIO port to STM32F4x

Post by barthess »

some news:
Looks like multiple read works. Other functionality not reworked.

@Giovanni,
SDIO is more complex than I2C (I remember how much time we spent to finalize i2c). So I would not to announce SDIO support in 2.4.0.
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: SDIO port to STM32F4x

Post by Giovanni »

Yes, it is complex, testing is critical too, probably that test application is not sufficient as is.

Giovanni
User avatar
barthess
Posts: 861
Joined: Wed Dec 08, 2010 7:55 pm
Been thanked: 7 times

Re: SDIO port to STM32F4x

Post by barthess »

Can anybody provide me full specs on SD/SDIO cards?
UPD:
Any way, some news. For the first look driver works on read and write, but needs deep testing. SDHC cards not supported because I have no one of it to perform testing. So maximum allowable by driver capacity limited to 2GB at the moment. If anybody wants support of SDHC than he can donate me that card in MicroSD size.

Regards
Post Reply