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

Missing Spi.end() before RegConfigSettings() caused ESP32-C3 to hang #161

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fleibede
Copy link

@fleibede fleibede commented Jul 26, 2024

RegConfigSettings() also does SPI.begin() and SPI.end(), which seems to make the code stop since there was two SPI.begin() wihtout an SPI.end() in between. Moving SpiEnd() to before RegConfigSettings() matches the Spi.begin() from SpiStart() and solves the issue.

Using Arduino 2.3.2 and esp32 arduino core 3.0.3

RegConfigSettings() also does SPI.begin() and SPI.end(), which seems to make the code stop since there was two SPI.begin() wihtout an SPI.end() in between.
Moving SpiEnd() to before RegConfigSettings() matches the Spi.begin() from SpiStart() and solves the issue.
@fleibede
Copy link
Author

Should solve this issue: #160

@EmileSpecialProducts
Copy link

Thanks, this solved my problem ( C3 ), It was working on Ardiuno 2.0.9, But hang on 2.0.17 and up.
So between 2.0.9 and 2.0.17 something changed that makes it hang.

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

Successfully merging this pull request may close these issues.

2 participants