#RP2040 SD card with limited FAT32 support

I’ve updated my sdcard project to include some FAT32 reading. Make sure a FAT32 partition is on the first partition of the card. So far, the driver is read-only. Drop a file called song.raw into the partition and it will play the song using PWM on pin GPIO 19. The song should be in a raw format with a sample rate of 16000Hz, one byte per sample.

The implementation is small. fat32.cc is 260 lines long, which is likely to be smaller than most other implementations. sdcard.cc is 576 lines long. It implements the SD card block device over SPI. Another compact implementation.

About mcturra2000

Computer programmer living in Scotland.
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s