Preparing an SD Card for use with Petit FatFs

The write function of Petit FatFs is unable to create files or expand the size of files that already exist. Therefore, before starting to use an SD card with Petit FatFs, it is necessary to first insert it into a PC, format it to FAT file system, and create a file of the desired size, with a known name.