diff --git a/doc/ChangeLog.md b/doc/ChangeLog.md index 8d612e6b6..eb3193745 100644 --- a/doc/ChangeLog.md +++ b/doc/ChangeLog.md @@ -1,3 +1,15 @@ +# Phytium Standalone SDK 2024-04-08 ChangeLog + +Change Log since 2024-04-07 + +## drivers + +- fix sdif descriptor num calculation + +## example + +- put more blocks in sdif read-write test + # Phytium Standalone SDK 2024-04-07 ChangeLog Change Log since 2024-04-03 diff --git a/drivers/mmc/fsdif/fsdif_dma.c b/drivers/mmc/fsdif/fsdif_dma.c index 8e37688ce..62f670054 100644 --- a/drivers/mmc/fsdif/fsdif_dma.c +++ b/drivers/mmc/fsdif/fsdif_dma.c @@ -106,7 +106,7 @@ static FError FSdifSetupDMADescriptor(FSdif *const instance_p, FSdifData *data_p if (data_p->datalen > instance_p->desc_list.desc_trans_sz) { desc_num = ((data_p->datalen / instance_p->desc_list.desc_trans_sz) + - (data_p->datalen % instance_p->desc_list.desc_trans_sz) ? 1 : 0); + ((data_p->datalen % instance_p->desc_list.desc_trans_sz) ? 1 : 0)); } if (desc_num > desc_list->desc_num) diff --git a/example/peripherals/sd/inc/sdif/sdif_common.h b/example/peripherals/sd/inc/sdif/sdif_common.h index 4000d4711..616c43093 100644 --- a/example/peripherals/sd/inc/sdif/sdif_common.h +++ b/example/peripherals/sd/inc/sdif/sdif_common.h @@ -58,7 +58,7 @@ extern "C" #define SDIO_BLOCK_SIZE 256UL /* most tested sdio cards have 256 block size by default */ #define SD_START_BLOCK 0 /* assing start block index \ at least start from 500M address to protect firmware */ -#define SD_USE_BLOCK 3 +#define SD_USE_BLOCK 10 #define SD_TOTAL_BLOCKS (SD_BENCH_SIZE / SD_BLOCK_SIZE) /**************************** Type Definitions *******************************/ diff --git a/example/peripherals/sd/makefile b/example/peripherals/sd/makefile index 5957ff40e..797552200 100644 --- a/example/peripherals/sd/makefile +++ b/example/peripherals/sd/makefile @@ -19,7 +19,7 @@ endif include $(SDK_DIR)/tools/build/makeall.mk -USR_BOOT_DIR ?= /mnt/d/tftboot +USR_BOOT_DIR ?= /mnt/d/tftpboot image: make clean make all -j