Replies: 2 comments 3 replies
-
Some extra info. It seems that if I set up the SPI bus for the Display with the lora MISO one the communication now works fine for most packets.... I am not understanding this? If the SPI bus global and the kSpiSettings local for each of them? I will try that and likely close this discussion, stupid on my side. |
Beta Was this translation helpful? Give feedback.
-
That's not how SPI bus works. The SCK, MISO and MOSI must all be shared among the devices. Otherwise, how would your ESP32 know that it is supposed to use different MISO pin for SX1262? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi I have a ESP32-S3 board that I am building, with e-ink and SX1262 (RA01-SH module).
The code seems to work fine if the first thing I run on the board is the LORA part:
IE:
However if I run some display updates, go to deep sleep the ESP32, and wake-up, execute the same code, I get this:
The SCK/MOSI pins of the 2 devices are shared, but BUSY/MISO/DC/CS/NSS are separate.
If I finish the SPI bus with end() before starting the other one, then it seems to work fine, but that completely breaks the multithreading of both devices.
I am unable to figure out what can be wrong to be honest....
Any help is appreciated, since I do not have enough available GPIO in my project to have separate bus pins for each one of them.
Beta Was this translation helpful? Give feedback.
All reactions