How do you enable spidev on the H3-CC-H5 with either Ubuntu or Raspian OS

I am trying to build a prototype that requires spidev to be enabled. Iv’e tried on both Ubuntu and Raspian OS

On Raspin, I did raspi-config and enabled spi but that did not create a /dev/spidev0.0 device.

On Ubuntu I tried:
sudo ldto enable spicc spicc-spidev
which works on La Potato but on H3/H5 I received the error:
LDTO_enable: spicc does not exist and cannot be adde

any help on getting this operational would be greatly appreciated.

Did you try sudo ldto list?

Thank you, I was able to figure it out. On the H5 you need to do:
sudo ldto enable spi0-spidev. (or spi1-spidev)

1 Like

You need to also issue ldto enable spi0 and maybe ldto enable spi0-cs1 (is this for chip select?) before the device appears in /dev/spidev0.0

You do not need to enable spi0 before spi0-cs1. You need to enable spi0-cs1 and then spi0-cs1-spidev.