SO just glancing at the code here: https://github.com/derekmolloy/exploringBB/blob/master/chp08/spi/spi595Example/spi595.c
I notice in fact he does have the path hard coded for the device: #define SPI_PATH "/dev/spidev1.0" So, after checking to make sure the spidev kernel module has loaded through your overlay files, and in fact it's configured correctly for this kernel. I'd double check the above path is actually still pointing to the correct hardware SPI module you're trying to use. On Fri, Jul 7, 2017 at 4:38 PM, William Hermans <[email protected]> wrote: > SO Derrek's book is based on kernel 3.8.x where as you're now using a 4.x > kernel. Chances are very likely you'll need to chance a few things in > relation to SPI. NO hands on with SPI on the beaglebone yet personally. But > first, you're going need to make sure your overlay file is correct for this > kernel. Also, file pathing for hardware has changed too. So unless you've > adjusted the code to work with this kernel, it likely will not work. > > Can you show us the output of the lsmod command? First it would be good to > make sure the SPIdev driver is actually loaded. > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CALHSORpMeifTxj%2BnSPT_50cGjQEzZVg3zvHL6J%3DUmUa%2BL_5U6g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
