Partition Expert to wipe SD Card when write-protected. The command clean is quick but data can still be recovered from professionals, if you want to give your SD card to other or just donate it, clean is not enough, you need to wipe everything out, to protect your personal information. Here are the steps to wipe SD card when write protecting.
This example shows how to read and write data to and from an SD card. Example will be tested in a real hardware circuit and simulated with Proteus. In the circuit there are 3 voltage dividers, each one consists of 2.2K and 3.3K resistors, they are used to step down 5V into 3V. Arduino SD card read and write files.
Before inserting your memory card, make sure the write-protect switch or seal is set to allow writing to the memory card. Then insert your memory card following the instructions in Inserting a Memory Card.
A Secure Digital card or SD card made by SDA is a memory card format that is used for portable devices.In mobile phones, cameras and computers, this non-volatile memory card format is often used. Data loss on the SD cards is prevented by a write-protect switch on the card. This switch can prevent data being written onto the card. This problem can be solved easily.
The memory card can easily be formatted which results in loss of the data. While there can be a case when someone else can use your memory card for pasting some irrelevant data on it. Thus to protect the memory card from such issues, many memory cards are now coming with write protection. UPDATE: 3 Methods to Format Write Protected SD Card in 2020.
Please note that if you are planning to perform this test, you can completely skip the speed tests above, as the tool actively reports read and write speeds of the memory card. In my opinion, H2Testw is the best memory card testing tool out there. It is designed specifically to identify fake memory cards that over-report their total storage.
Sometimes you lock your memory card or flash drive .Check if you lock your memory card ,then unlock it like the previous pictures may be your write protected problem will be solved after unlock memory card .If this solution doesn't work with your write protected problem, please follow the third solution.
The SD and micro SD card modules allow you to communicate with the memory card and write or read the information on them. The module interfaces in the SPI protocol. To use these modules with Arduino you need the SD library.