Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
New Contributor I
892 Views

spidev3.0 Permission Denied

Hi,

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!

Trixie

0 Kudos
1 Reply
Highlighted
Community Manager
21 Views

Hello Trixie,

 

 

Let's keep the discussion on the original thread.

 

It's best not to open multiple threads for the same issue.

 

 

Regards,

 

Octavian
0 Kudos