After pasting the spidev_test.c to the main .c, and run it, has an error and pleases see the image below,
for device it was static const char *device = “/dev/spidev1.1”; I change it to static const char *device = “/dev/spidev1.0”; and then changed to static const char *device = “/dev/verdin-spi-cs0”; none of them works
From your configuration properties I can see that you added appargs and set it correctly with -D /dev/verdin-spi-cs0. Now you also need to add an entry in devices and put the value as /dev/verdin-spi-cs0.
Changing the code itself shouldn’t be necessary, so I suggest reverting any changes you’ve made to it.
I have added /dev/gpiochip4 before and I did not know I should add SPI as well after adding /dev/verdin-spi-cs0 to the devices it works, thank you so much, and sorry for asking simple questions, thanks for taking your time.
and if I want to use send and received data I should use void transfer functions in int main? Are there any examples?