Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CardInfo and QuickStart for ESP32 #510

Open
VantagePro2 opened this issue Jan 25, 2025 · 4 comments
Open

CardInfo and QuickStart for ESP32 #510

VantagePro2 opened this issue Jan 25, 2025 · 4 comments

Comments

@VantagePro2
Copy link

Good evening!
I'm trying to connect SD shield to ESP32 by SPI:
MISO ->D19
MOSI->D23
SCK->D5
CS->D18
However, nothing happens after uploading the sketches CardInfo and QuickStart.
I used two different voltage supply - 3.3 and 5 V - for different shields.
But there aren't any information in Arduino IDE Monitor.
Why?

@greiman
Copy link
Owner

greiman commented Jan 26, 2025

However, nothing happens after uploading the sketches CardInfo and QuickStart.

Is there no output from QuickStart? Do you see this?

Be sure to edit DISABLE_CHIP_SELECT if you have
a second SPI device. For example, with the Ethernet
shield, DISABLE_CHIP_SELECT should be set to 10
to disable the Ethernet controller.

SD chip select is the key hardware option.
Common values are:
Arduino Ethernet shield, pin 4
Sparkfun SD shield, pin 8
Adafruit SD shields and modules, pin 10

Enter the chip select pin number:

If you see this, what happens after entering a chip select pin number?

You should see something like this with error info.

Enter the chip select pin number: 10

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

SD initialization failed.
Do not reformat the card!
Is the card correctly inserted?
Is chipSelect set to the correct value?
Does another SPI device need to be disabled?
Is there a wiring/soldering problem?

errorCode: 0x1, errorData: 0xff

@VantagePro2
Copy link
Author

Yes,
I checked the different pins.
Also I used two different boards ESP32 and some SD shields (3.3 and 5 volts)
Unfortunately there wasn't any info in the monitor.
So I decided to ask you

@greiman
Copy link
Owner

greiman commented Jan 27, 2025

I can't help since I don't have your hardware here and Serial.print does not work.

Try the BackwardCompatibility example. It is very simple.

@VantagePro2
Copy link
Author

OK
Thanks for support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants