Mcu stop when using f_write in usb host msc on stm32 f4.
Hello.
I want to operate the USB HOST MSC as FATFS with STM32 F4.
My code periodically records data to usb.
It works normally for quite a long time.
But if it works for a day, the mcu keeps stopping.
The problem seems to be periodic f_write.
Because it does not stop if the MCU does not use FATFS.
I've searched for solutions. In SD-CARD, f_write does not stop using __disable_irq() and __enable_irq().
So I applied what I found. However, the problem has not been resolved. There's a bigger problem. It does not deviate from the function of USB.
(The functions that are reflected are: USBH_MSC_SCSI_Write(), USBH_MSC_BOT_Process, USBH_MSC_RdWrProcess(), etc.)
Is the use of __disable_irq(), __enable_irq() different in usb?
If it's not available, please ask me to do something else that I can do.
