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'm working on a project that uses both a QSPI flash and some kind of screen (using LVGL), using the nrf52840 (just to be specific :p). I'm wondering if it's possible to use both peripherals on the same set of SPI pins, but using different CS pins. How would I make sure that the 2 peripherals don't collide (i.e. ensuring that not both of the devices are selected at the same time)? And since I don't need fast data access (at the moment), I could fall back to 2 normal SPI peripherals if that's makes things easier. Any pointer/advice would be appreciated.
P.S.: I'm not super familiar with Zephyr, I'm just developing some modules under (but not for) the ZMK project (as in, I've only developed drivers to handle events, but haven't dealt with an actual zephyr project).
Edit: it seems like it's possible to have 2 SPI devices on the same bus and have them easily managed. So it seems like half of my problem is solved. But still, how would one do the same thing for QSPI and SPI peripherals?
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
-
I'm working on a project that uses both a QSPI flash and some kind of screen (using LVGL), using the nrf52840 (just to be specific :p). I'm wondering if it's possible to use both peripherals on the same set of SPI pins, but using different CS pins. How would I make sure that the 2 peripherals don't collide (i.e. ensuring that not both of the devices are selected at the same time)? And since I don't need fast data access (at the moment), I could fall back to 2 normal SPI peripherals if that's makes things easier. Any pointer/advice would be appreciated.
P.S.: I'm not super familiar with Zephyr, I'm just developing some modules under (but not for) the ZMK project (as in, I've only developed drivers to handle events, but haven't dealt with an actual zephyr project).
Edit: it seems like it's possible to have 2 SPI devices on the same bus and have them easily managed. So it seems like half of my problem is solved. But still, how would one do the same thing for QSPI and SPI peripherals?
Beta Was this translation helpful? Give feedback.
All reactions