If the SD card is write-protected, check for a physical write protection switch on the card and ensure that it is in the unlocked position. If the issue persists, use diskpart command-line utility on Windows to remove the write protection.