Thanks for your work on the multiple ram chip library. Right now I have a stack of two ram chips. The examples work great. I'm using RamDiskToSdFat as a basis to load ram data into the SD card. I believe I'm only writing from the first ram chip and not from the second. The max SD file size remains at 125KB. That's what I got with just one ram chip.
Does this code work for multiple chips?
Serial.println(F("Copying ramFile to sdFile"));
int n;
while ((n = ramFile.read(buf, sizeof(buf))) > 0) {
if (sdFile.write(buf, n) != n) {
Serial.println(F("sdFile.write failed"));
return;
}
}
ramFile.close();
sdFile.close();
sd.ls(&Serial, LS_DATE | LS_SIZE);
Serial.println(F("Done"));
Thanks
Gerry