1 Reply Latest reply on Mar 5, 2018 3:33 AM by Intel Corporation

    spidev3.0 Permission Denied




      This is related to a previous question I asked here a couple of days ago about getting a reading from the BMI160 IMU chip. I've tried to open the spidev3.0 device by writing  a simple python script (and have also changed its permission to be executable of course):

      #!/usr/bin/env python
      import spidev
      spi = spidev.SpiDev()
      spi.open(3, 0)


      However, I am met with a Permission Denied error. I am wondering if anyone else has had this trouble or is there something else I am missing here?


      Additionally, I have tried to run this command on my terminal:


      spi_xfer -b 3 -c 0 -d 0x80 -w 2


      And the result is this, but I have no idea what to do with this information:


      spi mode: 0
      bits per word: 8
      max speed: 1000000 Hz
      TX: 0x80 0x0
      RX: 0x0 0xd1


      Thanks in advance!