-
Notifications
You must be signed in to change notification settings - Fork 185
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
SPI no longer works after update from v0.30 -> v0.37
#79
Comments
As a data point, I had to roll back to here to get the display on my Adafruit Magtag to work again
|
@Dominaezzz Any ideas? |
From staring at the code I can't tell what's wrong. @daagaak Does I didn't touch any of the e-hal 0.2 code paths yet at this point so I'm puzzled as to how it suddenly stopped working then. @akselbor Any chance you could do a binary search to see which exact version introduces the behaviour? |
@Dominaezzz
However, if I allow it to select
|
@daagaak Which device are you running that on? ESP32, esp32-s3, etc. |
@Dominaezzz That's an on ESP32-S2. I just tried the same source on ESP32 with |
Yeah I figured that might be the case. This code snippet to de-assert CS doesn't work on the ESP32-S2. Lines 314 to 333 in 2c3741a
Not sure how to work around it besides just using software CS. |
I discovered the similar issue. Let me add few notes. The following configuration does not work on ESP32-S3, the display shows just random noise:
Working configuration for ESP32-S3:
How to simulate with ESP32-S3-USB-OTG:
|
Does #86 fix the issue for you?
|
Yep, that branch is working on my ESP32-S2. |
I've been using an ESP32-S3 to control a couple of TMC5160s over SPI using
esp-idf-hal v0.30
. Yesterday, I updated the project toesp-idf-hal v0.37
and found that the SPI communication no longer works. The code is unchanged betweenv0.30
andv0.37
, except for the necessary changes tospi::config::Config
during initialization.Any idea what might be causing this? I would guess that it is related to 2d0554d? I'll try to debug the issue by myself in the meantime.
The relevant section of code looks roughly like this, after the abstractions have been removed:
Versions used:
The text was updated successfully, but these errors were encountered: