cancel
Showing results for 
Search instead for 
Did you mean: 

SDIO Libraty for STM32F417 or programming manual for CooCox

M_1
Associate II
Posted on June 13, 2013 at 16:04

Hi everyone!

Could you give me a complete example for SDIO raw read/write with 4-bits wide bus and DMA?

I'm trying to do it in Coocox CoIDE. Unfortunately there are no examples included. Could you write a manual step-by-step how to read and write data using CooCox DMA and SDIO library?
6 REPLIES 6
Posted on June 13, 2013 at 16:14

There is no support for Coocox here, try their forum.

For SDIO

STM32F4xx_DSP_StdPeriph_Lib_V1.1.0\Project\STM32F4xx_StdPeriph_Examples\SDIO\SDIO_uSDCard
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
M_1
Associate II
Posted on June 14, 2013 at 09:29

Thank you!

But it seems that someone is troilling me. When I include stm324xg_eval_sdio_sd.h it asks for another file and circle rounds.

Where can I find a normal working project? 
M_1
Associate II
Posted on June 14, 2013 at 10:34

Finally, I've found such project.

WriteMultiBlock is ok but reading returns error: Start bit not detected on all data signals in widE bus mode. Any ideas?

Are pull-ups needed on PCB or internal pull-up is enough?

Posted on June 14, 2013 at 13:27

Yes, you'll want pull-up's in the 33-47K range should suffice. Review circuit diagrams for boards supporting SD Cards.

[DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/STM32%20sdio%20sdhc%204gb%20problem&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/AllItems.aspx?Paged%3DTRUE%26p_StickyPost%3D%26p_DiscussionLastUpdated%3D20130611%252013%253a49%253a06%26p_ID%3D31401%26View%3D%257bF47A9ED8%252dE726%252d42BE%252dACED%252d732F13B66581%257d%26FolderCTID%3D0x012001%26PageFirstRow%3D41&currentviews=1302]https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fcortex%5fmx%5fstm32%2fSTM32%20sdio%20sdhc%204gb%20problem&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&TopicsView=https%3A%2F%2Fmy%2Est%2Ecom%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2Fcortex%5Fmx%5Fstm32%2FAllItems%2Easpx%3FPaged%3DTRUE%26p%5FStickyPost%3D%26p%5FDiscussionLastUpdated%3D20130611%252013%253a49%253a06%26p%5FID%3D31401%26View%3D%257bF47A9ED8%252dE726%252d42BE%252dACED%252d732F13B66581%257d%26FolderCTID%3D0x012001%26PageFirstRow%3D41¤tviews=1302
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
luke
Associate
Posted on July 17, 2013 at 08:08

Hi Clive1,

Do you have to use external pull-up resistors or could you rely on the internal pull-up resistors (approx 40K) (which seem I noticed seems to be set in your sample code too)?

Posted on July 17, 2013 at 13:28

You're welcome to try without them, I've been pretty unambiguous about my use of external pull-ups. A lot of people seem to have problems without them, and the internal ones are at the wrong end of the transmission line. Keep the traces short and uniform, place the resistors as close as possible to the card socket.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..