Open simeon9696 opened 3 years ago
I can't help. The partition table reads as junk.
I would need to look at your setup with a logic analyzer but I don't have your hardware and card.
This is what the partition table should look like, this is a 2G card. All but the first partition should be zero.
Do you have another SPI device?
Your card may not support SPI properly. Windows uses the 4-bit SDIO bus.
SdFat version: 2.0.4
Assuming the SD is the only SPI device.
Edit DISABLE_CS_PIN to disable an SPI device.
Assuming the SD chip select pin is: 10
Edit SD_CS_PIN to change the SD chip select pin.
type any character to start
init time: 48 ms
Card type: SD2
Manufacturer ID: 0X3
OEM ID: SD
Product: SD02G
Version: 8.0
Serial number: 0XCA1CA360
Manufacturing date: 11/2006
cardSize: 2032.66 MB (MB = 1,000,000 bytes)
flashEraseSize: 32 blocks
eraseSingleBlock: true
OCR: 0X80FF8000
SD Partition Table
part,boot,bgnCHS[3],type,endCHS[3],start,length
1,0X0,0X3,0X3D,0X0,0X6,0X28,0XE8,0XD8,249,3969799
2,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0,0
3,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0,0
4,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0,0
Scanning FAT, please wait.
Volume is FAT16
sectorsPerCluster: 64
clusterCount: 62020
freeClusterCount: 62015
fatStartSector: 250
dataStartSector: 768
Thanks @greiman I tried a 64GB card from SanDisk and I got a print out similar to yours above. So I guess the wiring etc is good, just the 1GB card is bad?
I'm using the SdInfo.ino sketch and I've formatted the 1GB micro sd card with the official formatter. Here's the full output of the sketch:
I am using an ESP8266 with the following wire config:
And I changed line 25 from
const uint8_t SD_CS_PIN = SS;
toconst uint8_t SD_CS_PIN = D8;
How can I fix the volumeBegin failed error? If I use the
SdFormatter.ino
, the sketch works but then Windows says 'you need to format the disk to use it' when I reinsert it into the machine.If I use
QuickStart.ino
I get: