Function f_write doesn't work correctly to write on SD card. Actually it calls a series of other function and one of them is HAL_SD_WriteBlocks which puts the mcu into
This is the code I have used to write a test string into a file:
I have tried enabling and disabling every interrupts or DMA, changing sd clock, bus width. Does not make difference.
This is while reading from the SD Card works.
CubeMX ver: 4.22.0
CubeF7 ver: 1.7.0