cancel
Showing results for 
Search instead for 
Did you mean: 

FAT in SD Card

nakulrao
Associate II
Posted on December 26, 2012 at 06:36

Hi

This question is meant specifically for Clive1. 

Your earlier post on FAT at https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=https%3a%2f%2fmy.st.com%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%

2fcortex_mx_stm32%2fST32f4discovery%2bsdcard%2bfatfs%20problem&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&currentviews=2587

This has been very helpful to me and I have modified the code to suit for STM3240G eval board. But the code gets stuck in an infinite loop in the sdio_sd.c file at line 2731.

I do not seem to understand what the problem is. 

I would apprecite your advice regarding this.

Thanks in advance.

#think! #think!
10 REPLIES 10
hfs99
Associate II
Posted on December 30, 2012 at 19:40

I wonder why the

SDIO_FLAG_DTIMEOUT

flag never gets set. Maybe the preceding code isn't setting the

SDIO->DTIMOUT

register?

That won't be the root cause (of why

SDIO_FLAG_RXDAVL

is never set), but needs to be fixed.

Of course, if you're mixing routines intended for DMA with setup intended for polling, or vice versa, you have a LOT of troubleshooting in store.