Skip to content

Commit

Permalink
fix(mmc): Add a delay before sending status cmd
Browse files Browse the repository at this point in the history
The SD card is failed after few resets of the icicle kit and is not
ready to receive next command after the SCR register and a minimal
delay is required before sending the next(status) command.

Signed-off-by: Padmarao Begari <padmarao.begari@microchip.com>
  • Loading branch information
padmaraob committed Apr 20, 2023
1 parent dd099c5 commit b3c277c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,7 @@ mss_mmc_status_t MSS_MMC_single_block_read(uint32_t src_addr, uint32_t * dst_add
* Ensure no error fields in Card Status register are set and that
* the device is idle before this function returns.
*/
mmc_delay(MASK_8BIT);
mMMC_ARM_TIMEOUT(mmc_spin_timeout);
do
{
Expand Down

0 comments on commit b3c277c

Please sign in to comment.