cancel
Showing results for 
Search instead for 
Did you mean: 

SDIO FIFO filled with only one SDIO_WriteData instruction

stm322
Associate II
Posted on March 04, 2009 at 13:13

SDIO FIFO filled with only one SDIO_WriteData instruction

1 REPLY 1
stm322
Associate II
Posted on May 17, 2011 at 13:05

Hello,

I try to send data to a SDIO card. For that I want to use the SDIO FIFO, but I ve got a strange behaviour.

Here is the code I do:

SDIO_DataInitStructure.SDIO_DataTimeOut = SD_DATATIMEOUT;

SDIO_DataInitStructure.SDIO_DataLength = 1;

SDIO_DataInitStructure.SDIO_DataBlockSize = SDIO_DataBlockSize_1b;

SDIO_DataInitStructure.SDIO_TransferDir = SDIO_TransferDir_ToCard;

SDIO_DataInitStructure.SDIO_TransferMode = SDIO_TransferMode_Block;

SDIO_DataInitStructure.SDIO_DPSM = SDIO_DPSM_Enable;

SDIO_DataConfig(&SDIO_DataInitStructure);

SDIO_WriteData(0x00000001);

Once I ve done the SDIO_WriteData, I was expecting to have only one word filled with the value 0x00000001 in the FIFO. But the full FIFO (from 0x40018080 to 0x400180FC) is filled with 0x00000001.

Is it a bug with the STM32?

If so, does that explain the ''2.13 Limited multibyte support with SDIO cards'' section of ''STM32F103xC/D/E Errata sheet'' saying that Multi Byte is not supported?

Thanks in advance.