IMU board over SPI bus on CS1

taikson
 
Posts: 2
Joined: Fri Dec 15, 2017 2:51 am

IMU board over SPI bus on CS1

Fri Dec 15, 2017 3:08 am

Hello,

I'm trying to connect a GY-91 model IMU board via SPI to Vocore2. It has a mpu9250 chip and I've connected NCS to SPI CS1 Vocore pin.

This prevents Vocore2 to boot in any way. No led, no serial console output at all. Once I disconnect CS1 line, Vocore2 runs OK (obviously no SPI communication with sensor board.).

It seems that it must be an electrical issue, but I'm clueless.

I2C connection works "fine" with this sensor, but sometimes is laggy and it keeps stalled during ~1sec during data transfer. I'm using latest openwrt (merged with LEDE), and thats the reasing why I'm trying to connect my sensor via SPI.

this is my dts related to the sensor, but I don't believe that it is related with the issue, because Vocore2 doesn't run in any way

Code: Select all
        mpu9250@1 {

                #address-cells = <1>;
                #size-cells = <1>;

                compatible = "inv,mpu9250";
                reg = <1>;
                spi-max-frequency = <10000000>;
                                   
                interrupt-parent = <&gpio1>;
                interrupts = <41 1>; //interrupt-controller is activated on gpio section

                i2c-aux-master {
                        #address-cells = <1>;
                        #size-cells = <0>;
                        ak8963@0c {
                                compatible = "ak,ak8963";
                                reg = <0x0c>;
                        };
                };
        };


Any advice?.

Thank you

Vonger
 
Posts: 896
Joined: Sun Oct 19, 2014 6:00 am

Re: IMU board over SPI bus on CS1

Sat Dec 16, 2017 11:27 am

What is your i2c driver? try i2c-gpio driver.

Return to VoCore2/Lite/Ultimate

Who is online

Users browsing this forum: Google [Bot] and 49 guests