SD card formating and problem of losing firmware

First, can we have a funtion of formating the TF card manually? Sometimes the card got an error, but dont want to pull out the card and format it in PC.

Second, got a problem that sometimes the firmware just lost, I have to reflash the firmware in. Anybody got this isssue before?