Check your USB drive or SD card for a lock switch, and ensure it's set to write. Clear the read-only box in a file's properties to remove write protection from individual files. Use the diskpart ...
Before attempting to format a write-protected SD card, it’s essential to ensure that this switch is set to the unlocked position. By doing so, you effectively disable the write protection mechanism ...