Skip to main content
Moritz M
Associate II
November 22, 2012
Question

SD Command Timeout after SD TX FIFO underrun

  • November 22, 2012
  • 0 replies
  • 541 views
Posted on November 22, 2012 at 17:33

Sometimes, when writing single blocks to the SD-Card, the TX FIFO underruns and generates an error. If this happens I want to write the block again immediately. Before the block is written, I do a CMD16 command (SD_CMD_SET_BLOCKLEN). But this fails with a SD_CMD_RSP_TIMEOUT. 

The SD_D0 line is HIGH, when the command is sent. So I assume the card is not busy.

I suppose that the command state machine is in an unknown state after the fifo underrun occurs.

Does anybody ever had this problem before or has some ideas how to solve this?

Regards 

Moritz

#stm32-sdio-dma-fifo
This topic has been closed for replies.