FatFS f_open always returns FR_DISK_ERR (when SDCard and USB in a single project)
I tried to implement the USB and SDCard in a single project. but I am facing some problems as mentioned below,
Below is my microcontroller configuration:
Controller: stm32h743bit6
SYSCLK frequency: 480MHz
APB1 &2: 120MHz
TO SDMMC1,2: check from 8Mhz to 52MHz
TO USB: 48MHz
· Minimum Heap 0x400 / Minimum Stack 0x800
* USB and SDCard are working fine in the separate project configurations.
* But when integrated USB and SDCard in a single project facing some issues
- The read and write functions of USB and SDCard are working fine when both devices are connected to the controller(Without ejecting SDCard or USB from the controller board).
* When we remove sd card or USB in between operations, the below error is observed
- f_open or fmount functions will always return the FR_DISK_ERR .
- Once i get disk error, i cant perform any operation like read or writing data to usb or sd card
- Some times the code will be stopped the execution.
