Page 1 of 1

IMU board over SPI bus on CS1

Posted: Fri Dec 15, 2017 3:08 am
by taikson
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

Re: IMU board over SPI bus on CS1

Posted: Sat Dec 16, 2017 11:27 am
by Vonger
What is your i2c driver? try i2c-gpio driver.