I found an apparent limit of one-sector for writing a file to the SD card. At least as far as there is an example of writing in the SDMMC example in seed examples. I can set len
to be any number up to 511 for a successful creation and write of a file of size of up to 511 bytes but when I make it 512 or higher, the write fails. Even if I change all the buffers to be 1024 bytes. And, of course, 512 is about the size of one sector on an SD card.
Perhaps someone with more knowledge of fatfs than I can tell me if this is a limit with the fatfs library in daisy or if there is a different setup needed than what is in SDMMC.cpp
to write a file that is more than one sector large. I know the WavWriter example of course does but it does it in a streaming sort of way that probably doesn’t write anything bigger than 511 bytes at time. I don’t want to have to “stream” a measly text file.
Thanks