Hello ST Experts! While using fatfs and mass storage device. Things that I write to mass storage device seen after unplug and plug the device. Can you help me? Thank you for your time and consideration.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-10 1: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
- Labels:
-
FatFS
-
STM32F7 Series
-
USB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-10 1:23 AM
by the way I use same buffer to use same ram places for fatfs and usb
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-10 6: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
Up vote any posts that you find helpful, it shows what's working..
