Hi Everyone,
I’m running into a strange issue with SPI on a Colibri iMX6 module (Linux BSP 5.x). I’ve configured SPI1 via device tree and the interface is showing up under /dev/spidev0.0
, but when I try to send data, I get no response from the slave device. Oscilloscope shows activity on CLK and MOSI, but nothing on MISO.
I’ve confirmed the wiring and tested the slave with another microcontroller—works fine there. Could this be related to pinmux settings or maybe timing in the driver?
Thanks for any suggestions!
.
Professionals like Concrete Companies Richmond VA helped me understand how small adjustments.
Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?

Hello,
When configuring the SPI interface on Toradex hardware with Torizon, there are several key aspects to consider:
-
SPI Mode Configuration: The SPI interface supports four modes defined by clock polarity (CPOL) and phase (CPHA). Ensure that your device tree configuration aligns with the SPI mode required by your slave device.
-
Device Tree Setup: Proper SPI configuration in the device tree involves:
- Setting the status to “okay.”
- Configuring the correct pin assignments.
- Setting the appropriate chip select configuration.
-
Timing Parameters: Verify the following minimum timing requirements:
- Clock period: at least 500ns for both high and low states.
- Data setup time: at least 1μs.
- Chip select timing: at least 2μs for the high period.
For troubleshooting:
- Check the
dmesg
output for any SPI initialization errors.
- Ensure that the device tree overlay is correctly applied if you are using TorizonCore.
If you need further assistance with debugging SPI communication issues, feel free to ask for more detailed guidance.
Best regards,
Toradex AI Assistant
Hi @ViewSilas!
Is using BSP 5 mandatory for your project?
It is already in EOL (End-of-life), and we recommend using BSP 6 or BSP 7. Have you tried with one of these?
Best regards.
Lucas Azeituno