2021-05-18 03:29 AM
Hi,
I'm using STM32F469 CONTROLLER for my application.
I was able to configure the USB as mass storage device by interfacing in MSC Mode.
I am able to see the storage when connected to PC through USB.
But I want the storage to be write protected.
Can you help me in solving this issue.
2021-05-18 05:03 AM
It uses SCSI commands.
The MODE SENSE/SELECT have a WP (Write Protect) bit, report this properly, the OS should adapt properly.
Attempts to WRITE, FORMAT, etc should fail with a suitable SENSE CODE indicating that the media isn't writable.
2021-05-19 02:42 AM
thank you for the response.
I have tried doing the same, but not worked.
Can you please let me know which function or structure to be modified clearly.