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

SD card reader not working [T5_V2.3.1_213] (20-8-26) #33

Open
mrWheel opened this issue Oct 4, 2022 · 0 comments
Open

SD card reader not working [T5_V2.3.1_213] (20-8-26) #33

mrWheel opened this issue Oct 4, 2022 · 0 comments

Comments

@mrWheel
Copy link

mrWheel commented Oct 4, 2022

Hi,

This is my setup:

#define SDCARD_MISO             (2)
#define SDCARD_CS               (13)
#define SDCARD_SCLK             (14)
#define SDCARD_MOSI             (15)

#define _HAS_SDCARD_

Tried it with and without:
SPIClass SDSPI(HSPI);

Added this line of code:

Serial.printf("SD: %dG\r\n", SD.cardSize());

If I insert a 2GB microSD card setupSDCard() returns false and SD.cardSize() returns zero.

I checked the defines with the silkscreen on my board and that all looks good/normal.
The SD card works OK on other devices.

Do I have a faulty board?

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

1 participant