If your SD card is write-protected, ensure that the physical write protection switch on the side of the card is in the unlocked position. If it is locked, toggle the switch to the opposite position. This should allow you to format the card.