Hi, I'm working on a project where I need to read a large audio file off the built-in SD card reader on the Teensy 4.1 (4 16-bit channels, roughly 1 hour of audio, 48kHz, raw audio data format, about 1.5 GB). I've programmed my own handler for this which uses the SD library directly, so this isn't an audio library question. I'm getting an error where my file isn't being read by my file open function, and before going further with debugging I figured I'd check to make sure that reading a file of that size won't cause an issue.
Is there any limit on the filesize that the SD library and the built-in reader can work with, or is this just limited by the storage on the SD card itself? And any other common issues I should check on?
I've already done the obvious and made sure my file is indeed on the card and that it's named correctly. Here is the function I'm using to open the card in case that's relevant (I'm getting the "File Not Found!" error):
Is there any limit on the filesize that the SD library and the built-in reader can work with, or is this just limited by the storage on the SD card itself? And any other common issues I should check on?
I've already done the obvious and made sure my file is indeed on the card and that it's named correctly. Here is the function I'm using to open the card in case that's relevant (I'm getting the "File Not Found!" error):
Code:
bool CopyBufferSD::open(const char *filename)
{
__disable_irq();
rawFile = SD.open(filename);
Serial.println(filename);
Serial.println(rawFile.available());
__enable_irq();
if (!rawFile) {
Serial.println("File not found!");
return false;
}
return true;
}