14.1.4 Error Recovery Mechanism

Table 14-5. Error Recovery Mechanism
Error TypeRecovery Mechanism
Host
CRC error in command
  1. Error response received from Client.
  2. Retransmit the command.
CRC error in received data
  1. Issue a repeat command for the data packet that has a CRC error.
  2. Client sends a response to the previous command.
  3. Client keeps the start DMA address of the previous data packet, so it can retransmit it.
  4. Receive the data packet again.
No response is received from Client
  • Synchronization is lost between the Host and Client.
  • The worst case is when Client is in receiving data state.
  • Solution: The Host must wait for max DATA_PACKET_SIZE period then generate a Soft Reset command.
Unexpected responseRetransmit the command.
TX/RX Data count errorRetransmit the command.
No response to Soft Reset command
  • Transmit all ones until Host receives a response of all ones from the Client.
  • Then deactivate the output data line.
Client
Unsupported command
  • Send response with error.
  • Returns to command monitor state.
Receive command CRC error
  • Send response with error.
  • Wait for command retransmission.
Received data CRC error
  • Send response with error.
  • Wait for retransmission of the data packet.
Internal general error
  • The Host must do a Soft Reset on the Client.
TX/RX Data count error
  • Only the Host can detect this error.
  • Client operates with the data count received until the count finishes or the Host terminates the transaction.
  • In both cases, the Host can retry the command from the start.
No response to Soft Reset command
  1. First received 4’b1001, it decides data start.
  2. Then received packet order 4’b1111 that is reserved value.
  3. Then monitors for 7 bytes all ones to decide Soft Reset action.
  4. The Client must activate the output data line.
  5. Waits for deactivation for the received line.
  6. The Client then deactivates the output data line and returns to the CMD/DATA start monitor state.
General Notes
  • The Client must monitor the received line for command reception at any time.
  • When a CMD start is detected, the Client receives 8 bytes then return again to the command reception state.
  • When the Client is transmitting data, it must also monitor for command reception.
  • When the Client is receiving data, it monitors for command reception between the data packets.
  • Issuing a Soft Reset command is detected in all cases.