diff --git a/bsp/imxrt1052-evk/drivers/drv_sdio.c b/bsp/imxrt1052-evk/drivers/drv_sdio.c index 33a9c81f8..d8eda0730 100644 --- a/bsp/imxrt1052-evk/drivers/drv_sdio.c +++ b/bsp/imxrt1052-evk/drivers/drv_sdio.c @@ -357,7 +357,7 @@ static void _mmc_request(struct rt_mmcsd_host *host, struct rt_mmcsd_req *req) if (buf) { MMCSD_DGB(" write(data->buf to buf) "); - memcpy(buf, data->buf, fsl_data.blockSize * fsl_data.blockCount); + rt_memcpy(buf, data->buf, fsl_data.blockSize * fsl_data.blockCount); fsl_data.txData = (uint32_t const *)buf; } else @@ -401,7 +401,7 @@ static void _mmc_request(struct rt_mmcsd_host *host, struct rt_mmcsd_req *req) if (fsl_data.rxData) { MMCSD_DGB("read copy buf to data->buf "); - memcpy(data->buf, buf, fsl_data.blockSize * fsl_data.blockCount); + rt_memcpy(data->buf, buf, fsl_data.blockSize * fsl_data.blockCount); } rt_free_align(buf);