Bill Greiman
Bill Greiman
Strange, I tried the Software SPI example on an ESP32 Dev Module and it worked. I used a 32GB FAT32 SD. The output was: > This line was printed using...
I tried these pins on another ESP32 Dev Module and they work. ``` // Chip select may be constant or RAM variable. const uint8_t SD_CS_PIN = 22; // // Pin...
All I did was set SPI_DRIVER_SELECT to 2 and defined the four pins to use. I didn't change SD_FAT_TYPE from zero since the default is to support FAT16/FAT32 and exFAT.
How does it fail?
What platform are you compiling on? Is it Windows Arm-based?
Loos like a problem with how asm for AVR is handled on some ARM Windows and Apple ARM devices. You are the first to post for my libraries but I...
Try removing FatFile.h lines 124-126 [here](https://github.com/greiman/SdFat/blob/628effa1c277e6dc1fef461b4b755ad300735248/src/FatLib/FatFile.h#L124-L126). They should not be there since the symbols have been changed from defines to const uint8_t. The error at line 337 of FatName.cpp is...
The most common hang problem is using dedicated SPI. What configuration are you using in sd.begin() ?
I accidentally edited your post adding this: Try changing DEDICATED_SPI to SHARED_SPI. SPI_FULL_SPEED is 50MHz. Try replacing it with a slower speed. Try: SdSpiConfig config(8, SHARED_SPI, 4000000) If that works...
I can't help much with reliability. Key hardware things are to have short wires to the SD socket and pullups on all data pins. Sometimes bigger caps on power help,...