diff --git a/arch/arm/src/imxrt/imxrt_usdhc.c b/arch/arm/src/imxrt/imxrt_usdhc.c index 558cfd3b54..3f39b06af3 100644 --- a/arch/arm/src/imxrt/imxrt_usdhc.c +++ b/arch/arm/src/imxrt/imxrt_usdhc.c @@ -2217,7 +2217,9 @@ static void imxrt_blocksetup(struct sdio_dev_s *dev, /* Configure block size for next transfer */ +#if defined(CONFIG_ARMV7M_DCACHE) priv->blocksize = blocklen; +#endif putreg32(USDHC_BLKATTR_SIZE(blocklen) | USDHC_BLKATTR_CNT(nblocks), priv->addr + IMXRT_USDHC_BLKATTR_OFFSET);