BMI 160 Shuttle Board Wiring for 4 Wire SPI

Hi

I'd like to configure the bmi160 with 4 wire SPI. I have done it but got stuck! In other words, when I want to initialize the sensor with SPI function instances, the code goes to abnormal termination, and no logical behavior is seen.  I mean here: 

struct bmi160_dev sensor;

/* You may assign a chip select identifier to be handled later */
sensor.id = 0;
sensor.interface = BMI160_SPI_INTF;
sensor.read = user_spi_read;
sensor.write = user_spi_write;
sensor.delay_ms = user_delay_ms;


int8_t rslt = BMI160_OK;
rslt = bmi160_init(&sensor);
/* After the above function call, accel_cfg and gyro_cfg parameters in the device 
structure are set with default values, found in the datasheet of the sensor */

 

I have tried multiple things but the problem is still there. I have provided a photo of the shuttle board wiring. Can you please let me know if this is the correct way. Thanks!

 

3 replies