sd card sometimes corrupted when access it with sdmmc in STM32L452re
Hello everyone, I'm trying to build a sensor device that uses stm32l452re as MCU, I need to save my data to sd card using sdmmc features to access it.
i using 4bit mode and clock divide 128, but unfortunately, my sd card sometimes corrupted and i need to format it using my pc when that happens, is there wrong with my setting or its naturally happen when we use sdmmc? this is my first project using it, so i still lack of experience, thanks.