Skip to content

D32 Pro defines TF_CS, SD card library uses SS #2153

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

Closed
mtfurlan opened this issue Dec 4, 2018 · 3 comments
Closed

D32 Pro defines TF_CS, SD card library uses SS #2153

mtfurlan opened this issue Dec 4, 2018 · 3 comments

Comments

@mtfurlan
Copy link

mtfurlan commented Dec 4, 2018

If you run the SD_Test example: https://github.com/espressif/arduino-esp32/blob/master/libraries/SD/examples/SD_Test/SD_Test.ino
on a lolin d32 pro https://github.com/espressif/arduino-esp32/blob/master/variants/d32_pro/pins_arduino.h
using the SD card slot, it will fail with Card Mount Failed, because the SD library uses SS as the default slave/chip select, while the d32 has TF_CS defined for the slave select.

In the example if you set the CS, it runs as expected.

-    if(!SD.begin()){
+    if(!SD.begin(4)){

I think the actual solution is to also define SS for the D32 pro?

@me-no-dev
Copy link
Member

totally correct!

@me-no-dev
Copy link
Member

fixed :)

@mtfurlan
Copy link
Author

mtfurlan commented Dec 6, 2018

Thanks!

blue-2357 pushed a commit to blue-2357/arduino-esp32 that referenced this issue Jul 17, 2024
dash0820 added a commit to dash0820/arduino-esp32-stripped that referenced this issue Mar 10, 2025
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