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

card->ssPin to LOW in sdcard_unmount()? #10901

Closed
1 task done
etkaar opened this issue Jan 25, 2025 · 1 comment
Closed
1 task done

card->ssPin to LOW in sdcard_unmount()? #10901

etkaar opened this issue Jan 25, 2025 · 1 comment
Labels
Status: Awaiting triage Issue is waiting for triage

Comments

@etkaar
Copy link

etkaar commented Jan 25, 2025

Board

ESP32-S3

Device Description

In sdcard_init() there is a digitalWrite(card->ssPin, HIGH) but in sdcard_unmount() there is no digitalWrite(card->ssPin, LOW), is that intended?

See: https://github.com/espressif/arduino-esp32/blob/master/libraries/SD/src/sd_diskio.cpp#L710C3-L710C21

Hardware Configuration

Not applicable

Version

v3.0.7

IDE Name

Arduino IDE

Operating System

GNU/Linux

Flash frequency

40MHz

PSRAM enabled

yes

Upload speed

115200

Description

Not applicable

Sketch

Not applicable

Debug Message

Not applicable

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@etkaar etkaar added the Status: Awaiting triage Issue is waiting for triage label Jan 25, 2025
@me-no-dev
Copy link
Member

digitalWrite(card->ssPin, HIGH) is done in init just to make sure that the bus is properly set. From then on the SS pin is handled internally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Awaiting triage Issue is waiting for triage
Projects
None yet
Development

No branches or pull requests

2 participants