SD fails to create/open/write files

Needing some guidance,

I have an Uno R3 with a 6 pin MicroSD module. I wiped a 2GB card from an old phone and I cannot for the life of me figure out why it isn't creating/opening/writing to a file.

The card connects and initializes perfectly, its formatted to FAT16, the module has a level shifter, and wiring is right. Everything looks good with the "cardinfo" sketch.

I'm using the SPI.h and SD.h libraries. I don't think its the code though... I've tried countless tutorials and the datalogger straight from the example library, and nothing works.

What else should I be looking for? I've tried 3 other identical cards and same result.

did you try the CardInfo diagnostics example?

We will never know if you don't post it.

Why did you start a new topic? See SD file will not open/write.

Yes, like I said in the original post, the CardInfo example comes out fine.

I didn't post the code, because I've tried so many VERY basic methods, and even the example datalogger doesn't work, so I really think it is something else, I am just looking for other ideas. I started a new topic for this reason, I tried all the previous suggestions, and I do not believe it is code related. Now I need suggestions on what else it could be.

isn't he card switched to read-only?

Did you try the ReadWrite example? Does it work?

One possibility is that you don't have sufficient power going to the SD module for erasing and writing operations. How are you powering the SD module?

8.3 filenames?

Just to clarify, can you read the contents of a file on the SD card if that file was created on a PC?

If so, then a power issue as already suggested could be the problem.

I doubt that. From your other post

And @Juraj's comment

So did you fix that? We can not see.

Note:
I don't know what the datalogger example is.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.