-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Incorrect 'SS' pin assignment, variant file for Adafruit ESP32 Feather Board' ? #1586
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
Comments
It works either way :) but since we are talking about a wing, it makes no sense to define this in the board's pin definition. Oh and the original Arduino SD library does not work here. |
Thanks @me-no-dev for your comments. Copying @ladyada ...
We were just following the instructions given us on the Adafruit website to verify card functioning. See 'Get Card Info' section on this webpage
After studying the schematics for the wings supporting an SD card, I agree with you; the SD_CS pin jumps around. The current SS definition given in the variant file (GPIO2), however, happens to be a no-connect at the ESP32 processor. This would be the pin I'd pick to "do no harm", but it guarantees the example sketches 'SD_Test.ino' and 'SD_time.ino' won't function with the ESP32 Feather as coded.
That would be one way to get 'SD_Test.ino' and 'SD_time.ino' working again:
Another alternative would be for Adafruit to write an 'CardInfo' sketch for the ESP32. |
While it made sense to use the standard SD lib on ESP8266, it does not make much sense to do it on ESP32 (we have more integrated file system, sdmmc and more). If "GetCardInfo" is an issue, then maybe yes, writing a compatible sketch is a good idea. |
@ladyada, |
Pin 2 is not found on the [Adafruit docs](https://learn.adafruit.com/adafruit-huzzah32-esp32-feather) for this board and 33 was suggested in espressif#1586 as a fix. I've tried this locally on my board and it is working correctly.
Pin 2 is not found on the [Adafruit docs](https://learn.adafruit.com/adafruit-huzzah32-esp32-feather) for this board and 33 was suggested in #1586 as a fix. I've tried this locally on my board and it is working correctly.
Basic Infos
Hardware
Adafruit HUZZAH32 - ESP32 Feather Board
https://www.adafruit.com/product/3405
Adalogger FeatherWing - RTC + SD Add-on For All Feather Boards
https://www.adafruit.com/product/2922
Adafruit Ultimate GPS FeatherWing
https://www.adafruit.com/product/3133
FeatherWing Tripler Mini Kit - Prototyping Add-on For Feathers
https://www.adafruit.com/product/3417
OS, IDE, and Commit
Settings in IDE
Description
While bringing up the forementioned hardware assembly, my colleague and I found we could not compile the 'CardInfo' example sketch contained within the Arduino 'SD' library:
Pressing onward, we next tried the 'SD_Test.ino' example sketch within the SD(esp32) library. The sketch compiled OK, but when ran produced a 'Card Mount Failed' message. Suspecting an incorrect SD card chip-select assignment, we next looked at the 'pins_arduino.h' variant file defined for the 'ESP32 Feather' board:
The Adafruit website for the RTC/SD board identifies GPIO pin 33 as the required pin, and changing the variant file's SS pin definition to this value resolved the issue.
Is the 'SS=33' assignment for the RTC/SD/ESP32 feather board combination a once-only assignment, or can the change be made permanent within the variant file?
Copy Author: @ladyada
The text was updated successfully, but these errors were encountered: