SPI and I2C with Torizon extension and Vs Code

I’m implementing a SPI application with python using the Torizon extension and VS Code for development. The Toradex documentation indicates to add “/dev/spidev0.0” under configuration- devices. That results in a build error since spidev0.0 does not exist. What should be added under devices for the SPI?

Is it correct to use “RUN usermod -a -G spidev torizon” under buidl commands?


Greetings @CEK,

By default on the Colibri i.MX8X the SPI is disabled by default which is why you’re not seeing it. You’ll need to apply a device tree overlay to the system to enable it. The process is generally outlined here: Device Tree Overlays on Torizon | Toradex Developer Center

Specifically, this should be the overlay you’ll need to apply: device-trees/colibri-imx8x-eval_spidev_overlay.dts at toradex_5.4-2.1.x-imx · toradex/device-trees · GitHub

Best Regards,