Changing SPI configuration during execution #49955
Unanswered
baptiste-cartier
asked this question in
Q&A
Replies: 1 comment
-
Do you need to re-configure the pins? Assuming you have the 3-wire fix in the driver, it should just work if the chip select pins (or slave select) are connected to them, no? The devices are using SPI after all. If you need dynamic reconfigure, what you need is this The doc says:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
On one of our custom boards, based on the STM32L4, we have a SPI-NOR Flash using Full Duplex (4 wires) SPI communication and a LSM303AGR accelerometer using Half Duplex (3 wires) SPI communication. They both use the same SPI instance and the pins used are the same. We would like to port our application with Zephyr, but as far as I understood, Zephyr does not support dynamic reconfiguration of peripheral through the DTS. Did I miss something ?
What work should be done to support dynamic reconfiguration of this SPI configuration? I guess we could bypass entirely the Device Tree and access the SPI driver but that seems against the philosophy of Zephyr.
We also noticed that the "DTS-ST HAL interface" (in spi_ll_stm32.c) does not support Half Duplex (it does not check the duplex bit in the operation field) but a fix should not be difficult to implement.
Best regards,
BCartier
Beta Was this translation helpful? Give feedback.
All reactions