diff --git a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossworks/Boot/lib/fatfs/mmc.c b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossworks/Boot/lib/fatfs/mmc.c index f57f4a12..deafc630 100644 --- a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossworks/Boot/lib/fatfs/mmc.c +++ b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossworks/Boot/lib/fatfs/mmc.c @@ -372,7 +372,8 @@ typedef struct #define SD_SINGLE_BUS_SUPPORT ((uint32_t)0x00010000) #define SD_CARD_LOCKED ((uint32_t)0x02000000) -#define SD_DATATIMEOUT ((uint32_t)0x00010000) + +#define SD_DATATIMEOUT ((uint32_t)0xFFFFFFFF) #define SD_0TO7BITS ((uint32_t)0x000000FF) #define SD_8TO15BITS ((uint32_t)0x0000FF00) #define SD_16TO23BITS ((uint32_t)0x00FF0000) diff --git a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_GCC/Boot/lib/fatfs/mmc.c b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_GCC/Boot/lib/fatfs/mmc.c index f57f4a12..deafc630 100644 --- a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_GCC/Boot/lib/fatfs/mmc.c +++ b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_GCC/Boot/lib/fatfs/mmc.c @@ -372,7 +372,8 @@ typedef struct #define SD_SINGLE_BUS_SUPPORT ((uint32_t)0x00010000) #define SD_CARD_LOCKED ((uint32_t)0x02000000) -#define SD_DATATIMEOUT ((uint32_t)0x00010000) + +#define SD_DATATIMEOUT ((uint32_t)0xFFFFFFFF) #define SD_0TO7BITS ((uint32_t)0x000000FF) #define SD_8TO15BITS ((uint32_t)0x0000FF00) #define SD_16TO23BITS ((uint32_t)0x00FF0000) diff --git a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_IAR/Boot/lib/fatfs/mmc.c b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_IAR/Boot/lib/fatfs/mmc.c index f57f4a12..deafc630 100644 --- a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_IAR/Boot/lib/fatfs/mmc.c +++ b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_IAR/Boot/lib/fatfs/mmc.c @@ -372,7 +372,8 @@ typedef struct #define SD_SINGLE_BUS_SUPPORT ((uint32_t)0x00010000) #define SD_CARD_LOCKED ((uint32_t)0x02000000) -#define SD_DATATIMEOUT ((uint32_t)0x00010000) + +#define SD_DATATIMEOUT ((uint32_t)0xFFFFFFFF) #define SD_0TO7BITS ((uint32_t)0x000000FF) #define SD_8TO15BITS ((uint32_t)0x0000FF00) #define SD_16TO23BITS ((uint32_t)0x00FF0000)