You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently updated my project to esp-hal v1.0.0-rc.0 using esp-generate and I noticed that my SPI-based logic no longer works. It relies on embedded_hal v1.0.0 to call embedded_hal::spi::SpiBus::transfer_inplace() which seems to be implemented differently from esp_hal::spi::master::Spi::transfer(). The fix was adding a missing call to setup full duplex communication
. However, I have yet to try it because updating my project would require some time.
The reason I created a discussion instead of an issue is because it's already fixed, I am not sure what the best approach would be here. My aim is to simply document this issue so that other users of embedded_hal would be aware of it and seek an alternative solution instead.
With the current state of esp-hal's main branch, I don't see the point in adding a test for this since the API is very well abstracted now.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Thank you for your amazing work on esp-hal!
I recently updated my project to esp-hal v1.0.0-rc.0 using esp-generate and I noticed that my SPI-based logic no longer works. It relies on
embedded_hal
v1.0.0 to callembedded_hal::spi::SpiBus::transfer_inplace()
which seems to be implemented differently fromesp_hal::spi::master::Spi::transfer()
. The fix was adding a missing call to setup full duplex communicationThis was already fixed in the current state of the main branch, see
esp-hal/esp-hal/src/spi/master.rs
Line 2678 in d0a2d49
The reason I created a discussion instead of an issue is because it's already fixed, I am not sure what the best approach would be here. My aim is to simply document this issue so that other users of
embedded_hal
would be aware of it and seek an alternative solution instead.With the current state of esp-hal's main branch, I don't see the point in adding a test for this since the API is very well abstracted now.
Again, thanks!
Beta Was this translation helpful? Give feedback.
All reactions