Thread:Talk:BeagleBone Black Enable SPIDEV/Bad File Descriptor using SPIDEV on Beaglebone

Hi! So I'm noticing that when I change the length of the buffer in my spi_ioc_transfer struct that something is causing my file to close and I'm getting a "bad file descriptor" error when I try to send additional packets through using SPIDEV.

Anyone else having this issue? It appears to me that the "bad file descriptor" is caused when the file is closed from the outside.. I'm guessing that it's being closed when the length of the buffer is changed. I'm not sure what I need to do to fix this problem. Any thoughts would be much appreciated!

Thank you!