Page 1 of 1

SPI Sample Program

Posted: 2025-02-19 10:20
by enystrom
I am trying run the c version of the SPI sample program on the Pico Pro Max. The device path in the program uses /dev/spidev0.0. I have tried both the buildroot and ubuntu SD card versions and neither shows this device in /dev. The spi device is present in /sys/bus/spi/devices as spi2.0. I looked at the menuconfig for the buildroot kernel and was unable to figure out what to do to get the /dev version.

Is it possible to build a kernel with /dev/spidev0.0 driver? Any suggestions on how?

Re: SPI Sample Program

Posted: 2025-02-19 12:25
by Crocodile
Hello, the default spi is not enabled, so there is no /dev/spidev0.0 device, you can use the luckfox-config command to enable it

Re: SPI Sample Program

Posted: 2025-02-24 20:19
by enystrom
Thanks. I can see the device now.