AnsweredAssumed Answered

Fatfs f_close causes idle hook

Question asked by hekarriz.alis on Apr 9, 2018
Latest reply on Apr 10, 2018 by hekarriz.alis

Hello everyone

I use stm32f746 discovery board.

I implemented emwin,Free rtos and Fatfs for the SDcard(using SDIO interface).

In my application after pressing a button, a value(as a string) is saved in the SDcard.

Everything works fine.but after an unspecified time, pressing "save button" makes the application

go to handle to the idle task(this function: void vApplicationIdleHook(void)) and about 30 seconds everything is stopped.

after this time f_close function returns FR_DISK_ERROR.

This happens exactly the moment disk_write function is executed.(disk_write in f_sync or f_close functions)

Is there a way to prevent this happening?

Any Help please ?

Thank you

Outcomes