Libmraa spi gpio error

I am working on LCD Screen Driver however when i run my code it shows me this syslog error:

gpio500: mode: Failed to open 'drive' for writing: No such file or directory

I’m using libmraa to do this, SPI initialization works as well as setting gpio, this error happens when I send/write data to spi.

sudo cat /sys/kernel/debug/gpio #my im using these pins
gpio-475 (                    |sysfs               ) out lo 
gpio-500 (                    |sysfs               ) out lo 
gpio-502 (                    |sysfs               ) out lo

Ohh ok. I didn’t know that was the case. Will SPI_B work?

Updated /boot/uEnv.txt to use bus 1, reconnect spi wires, still did not work.
:frowning:
Do you know what other libraries i can use to run SPI programs?

Hi, SPI_A and SPI_B can work.
But they cannot work together.

To enable SPI_A (/dev/spidev0.0), add item “meson-g12a-spi-spidev” to the “overlays=” line.

 overlays=meson-g12a-spi-spidev
 param_spidev_spi_bus=0
 param_spidev_max_freq=10000000

To enable SPI_B (/dev/spidev1.0), add item “meson-g12a-spi-spidev” to the “overlays=” line.

 overlays=meson-g12a-spi-spidev
 param_spidev_spi_bus=1
 param_spidev_max_freq=10000000

Yes, i did that. Still same error.