Skip to content

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

Closed
@mtfurlan

Description

@mtfurlan

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions