Sharing SPI bus with EVE #44
Replies: 2 comments 7 replies
-
I am afraid that this might be a tough one. Looking at the sources, there might be a way. Try commenting out the #define EVE_DMA line in EVE_target.h, this is line 1869 for the ESP32 target. If this works we might get it to work with DMA as well by adding two extra lines to EVE_cpp_target.cpp. Well, this assumes that the SPI class plays nice and just waits as long as the SPI is claimed. |
Beta Was this translation helpful? Give feedback.
-
Oh, forgot, since I do not currently have a PIC32 target, would you like to share what you have so I can add it to EVE_target.h? |
Beta Was this translation helpful? Give feedback.
-
Hi Rudolph,
I am using your great library on a couple of PIC32 projects and it works really well. I now need to use an EVE display with an ESP32. I was able to easily make it work, but I am having some trouble sharing the SPI bus with other devices.
In my PIC32 projects, I do not use any library apart from yours (I use c to directly talk to the SPI device) - so I simply select / deselect (CS) the device on the SPI bus and all works well.
But for the ESP32, I am using Arduino, so I end up with a bunch of libraries that I don't always know exactly how they are using the SPI bus. For this project, I am trying to share a MAX3421E (USB host chip through SPI) with your EVE library. I am using this library as the interface.
I can successfully use both device, but not at the same time. If I only use EVE in my code, all is good. If I only use MAX3421E in my code, all is good. But if I try to use EVE, then try to use MAX3421E, EVE will stop to respond to command after I start using MAX3421E (and vice-versa). So I was wondering if you're EVE library requires exclusive use of the SPI port?
(On another board I made with an ESP32 (no EVE display) I am able to share the same SPI bus with an RTC and FRAM.)
I know there might be missing some details (which I can provide if needed) but if the library requires exclusive use of the SPI port, all other details will be irrelevant :)
Since the EPS32 has 2 SPI ports, I could just use 1 port for EVE and 1 port to share with other device - but the current board I made have both on the same port so taking a chance to ask :)
Thanks for the great library!
Dominic
Beta Was this translation helpful? Give feedback.
All reactions