Question
How to calculate free space on a USB stick using f_getfree
Hello, I found this handy site with example code on getting free space on a USB connected to my STM32F7. The example code says "assuming 512 bytes/sector"... but I can't get the math to work out. How do I tell how many bytes per sector is on my USB drive, and will this be the same for all USB drives? OR is there another query I need to do on the card to figure out this bytes/sector parameter? Thanks!
Oops, here's the handy site. Got me *almost* all the way there.
