From 655d2e72a7049832868424c6a4ef5c0b5214b49d Mon Sep 17 00:00:00 2001 From: giulcioffi Date: Fri, 12 Feb 2021 11:07:17 +0100 Subject: [PATCH] Enable Flow Control to avoid corruption when data written to SD are fetched from HttpServer --- libraries/Portenta_SDCARD/BSP.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/Portenta_SDCARD/BSP.c b/libraries/Portenta_SDCARD/BSP.c index 59783149b..d877ae53c 100644 --- a/libraries/Portenta_SDCARD/BSP.c +++ b/libraries/Portenta_SDCARD/BSP.c @@ -104,7 +104,7 @@ uint8_t BSP_SD_Init(void) uSdHandle.Init.ClockDiv = 6; uSdHandle.Init.ClockPowerSave = SDMMC_CLOCK_POWER_SAVE_DISABLE; uSdHandle.Init.ClockEdge = SDMMC_CLOCK_EDGE_RISING; - uSdHandle.Init.HardwareFlowControl = SDMMC_HARDWARE_FLOW_CONTROL_DISABLE; + uSdHandle.Init.HardwareFlowControl = SDMMC_HARDWARE_FLOW_CONTROL_ENABLE; uSdHandle.Init.BusWide = SDMMC_BUS_WIDE_4B; /* Msp SD initialization */