Go Down

Topic: File System initialization failed: SD Card, arduino nano v3, SdFat and fat32  (Read 494 times) previous topic - next topic

Tormodvh

I'm unable to open the file system, i have tried different libraries, different hardware configurations but nothing seams to work properly.

I get an type 0xEE on the partition: i wiped the card with diskpart: "clean disk", and formated fat32

To make it complete, I have now two hardware setup with the same component types running and they behave equally.

Can some one please, help me: I suspect it is a pinout problem, mayby the chip select.

My configuration now:
- arduino Nano v3 : like this https://www.aliexpress.com/item/4000009207563.html
- with pinout like this https://www.theengineeringprojects.com/2018/06/introduction-to-arduino-nano.html
- micro SD card adapter: like this https://www.aliexpress.com/item/32849526471.html

no extra power than through usb-cable (for now)

circuit:
adapter -> arduino
GND -> GND(Beside VIN)
VCC -> VIN
MISO -> MISO(D12)
MOSI -> MOSI(D11)
SCK -> SCK (D13)
CS -> SS(D10)

Code: unchanged SdInfo Example from SdFat

Code: [Select]

SdFat version: 10100

Assuming the SD is the only SPI device.
Edit DISABLE_CHIP_SELECT to disable another device.

Assuming the SD chip select pin is: 10
Edit SD_CHIP_SELECT to change the SD chip select pin.

type any character to start

init time: 118 ms

Card type: SDHC

Manufacturer ID: 0X3
OEM ID: SD
Product: SC16G
Version: 8.0
Serial number: 0XBA1339DA
Manufacturing date: 8/2011

cardSize: 15931.54 MB (MB = 1,000,000 bytes)
flashEraseSize: 128 blocks
eraseSingleBlock: true
OCR: 0XC0FF8000

SD Partition Table
part,boot,type,start,length
1,0X0,0XEE,1,4294967295
2,0X0,0X0,0,0
3,0X0,0X0,0,0
4,0X0,0X0,0,0
error:
File System initialization failed.




Tormodvh

The problem is solved after all: Windows 10 is unable to format SD card with Fat32 properly.  >:(
At least a way that makes it readable for my SD Card adapter. not two other formater programs either, but "SD Card Formater" is.  :)

 

Go Up