2012-12-25 09:36 PM
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¤tviews=2587This 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!2012-12-30 10:40 AM
I wonder why the
SDIO_FLAG_DTIMEOUT
flag never gets set. Maybe the preceding code isn't setting theSDIO->DTIMOUT
register? That won't be the root cause (of whySDIO_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.