I am using STM32F4xx with SDIO port to SanDisk SDIN5C2-8G 8GB using Keils SDIO driver.
I am getting finit(NULL) returning 1 every time. Debugging shows commands being sent not getting any response.
Does Keil support SDHC memory at 8GB ? Do I need to implement my own driver to support this memory ?. Any examples available ?
Yes SDHC is supported how about example in folder ..\ARM\Boards\ST\STM3240G-EVAL\RL\FlashFS\SD_File\ or ..\ARM\Boards\Keil\MCBSTM32F400\RL\FlashFS\SD_File\ ?
Yes I have tried that code and still have no response. Something is not working, it like the memory is asleep.
Try putting pressure to SD slot, it might be a problem of poor contact of SD card with the connector (slot).
Detail on the memory is a BGA on a PCB, I starting to think this beginning to be a hardware fault.
Couple a gotchas in files you should be aware of:
http://www.keil.com/forum/20930/
I do have the SDIO driver CheckMedia to indicate card is inserted permanently.
/****************************************************************************** * Description: CheckMedia * Return: 0000 0000 No Media * 0000 0001 Media Inserted * 0000 0002 Media Protected * 0000 0003 Media Inserted and Protected ******************************************************************************/ static U32 CheckMedia (void) { return(M_INSERTED); }