diff --git a/components/drivers/sdio/mmcsd_core.c b/components/drivers/sdio/mmcsd_core.c index 777f15f2bb0116c679bf9b1b1513bc907a4bfd15..d11bcce3a899abaaa3502a03e69f8d5d780b6262 100644 --- a/components/drivers/sdio/mmcsd_core.c +++ b/components/drivers/sdio/mmcsd_core.c @@ -175,7 +175,7 @@ rt_int32_t mmcsd_get_cid(struct rt_mmcsd_host *host, rt_uint32_t *cid) return 0; } - buf = (rt_uint8_t *)rt_malloc(16); + buf = (rt_uint32_t *)rt_malloc(16); if (!buf) { rt_kprintf("allocate memory failed\n"); @@ -248,7 +248,7 @@ rt_int32_t mmcsd_get_csd(struct rt_mmcsd_card *card, rt_uint32_t *csd) return 0; } - buf = (rt_uint8_t*)rt_malloc(16); + buf = (rt_uint32_t*)rt_malloc(16); if (!buf) { rt_kprintf("allocate memory failed\n");