I am using CUBIDE for programming stm32l452. When I enable SDMMC without rtos then I can communicate with SD card from main function (outside of while loop). When I enable freertos without any changes in programm SDmmc stops communication, but mounting is successful. Who can help me to solve this problem I need to write SD from one task and parallely get data from another task via spi. Thanks.
`void main
{
f_mount(); //
f_open();
f_write();
f_close();
while(1)
{
HAL_Delay(1000);
}
}`