I am using USBMSCHFatFs on my TMS4C129ENCPDT processor and the USB reading is writing correctly to the USB memory stick.
TIRTOS_TIVAC version is 2_14_04_31
I currently have a couple of long Task_sleeps after I close the file (2000ms) and after I unmount the USBfs (500ms) before I power down the USB. I have done this as I cannot see any function that tells me when the USB has finished writing back to its flash and it is safe to power down the USB drive. I may have missed something and would appreciate if anyone can point me in the correct direction as to how I can determine when it is safe for me to power down the USB.
We are using the USB as an exporting tool on battery backed device and don't want to have the USB operating for any longer than required so we don't waste battery life.