I'm developing USB MSC features with chip STM32F779 using SD Card .
Now I can read/write/format data in SDcard.
But there is 1 issue is I can not do Safe Eject the USB from Window. Window said that the device is “safe to remove” but actually USB device still there and can read/write as usual.
So does USB stack support any event to detect USB safe eject ? And What is the proper way to do this ?