2021-08-10 01:20 AM
Firstly I use internal sram of stm32f7 discovery and now its seen like a mass storage device. After that I try to write to that device. I can write and read properly but when I try to look at the device from my pc its seen empty but when I unplug and plug USB OTG data is seen. It is very ridiculous.
Her my user disk code:
here is my usbd
her is my openFile code
here is my file parser
2021-08-10 01:23 AM
by the way I use same buffer to use same ram places for fatfs and usb
2021-08-10 06:09 AM
PC side will be cached, it isn't going to see random changes you make to the file system.
You'd need to be very careful to ensure coherency.
The MSC layer will need to issue a SCSI Sense Code indicating a MEDIUM CHANGE