-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
esp32c3 SPI SD can't not work #9082
Comments
please post your PIO and Arduino IDE board configuration |
|
PIO default means Arduino Core 2.0.10 PACKAGES:
|
@TasLR - Please change your Platformi.ini to use Arduino Core 2.0.14:
Test the sketch again and let us know. |
Building the sketch using PIO 6.5.0 should report:
|
@SuGlider to be sure to use latest, it is recommended to pin the version
if the version is left out any version can be used which is "found" (formerly installed) EDIT: I was to slow in my post. You wrote where I was still typing :-) |
@Jason2866 - Got the 2.0.10 out of a fresh new project. Using just the Is this how it should work, or it may happen because I installed PIO for the first time quite a time ago? |
Exactly this. If you nuke Platformio with all hidden folders and use So that's why Platformio recommends on github espressif32 platform to pin version. I learnt the hard way too ;-). Now i am paranoid, if something unexpected happens i delete the |
Thanks @Jason2866 |
I went to configure my project file according to the configuration you showed, but I still have the same problem,the build log as following:
|
I've reconfigured the project the way you said, but I'm still having the same problem, could you please test it out |
There's a spot in setup where you need to change the code to reassign pins. I'll submit a PR to fix the example. |
Isn't the SPI pin of ESP32 series microcontroller mapped to any pin? Because I can drive normally according to the pin test you use, but I can't change to other pins, is this the difference in the program framework or some other reason |
* Matched pin numbers in doco to numbers in variants files * Non-breaking dashes * Changed SD examples to make REASSIGN_PINS more transparent. Fixes #9082 --------- Co-authored-by: Jan Procházka <[email protected]>
Board
esp32-c3-wroom-02
Device Description
esp32-c3-wroom-02-N4
Hardware Configuration
#define PIN_NUM_MISO 10
#define PIN_NUM_MOSI 19
#define PIN_NUM_CLK 18
#define PIN_NUM_CS 3
Version
v2.0.14
IDE Name
platformIO
Operating System
windows10
Flash frequency
40
PSRAM enabled
yes
Upload speed
115200
Description
I want to run spi sd test with esp32c3, but It can't work under arduino framework,and It can work under the esp idf framework. I use the same ports on these example. under arduino framework, the log is sd drive fail, can you tell how to do slove this problem? thank you !
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: