11-09-2022 05:09 AM
I am studying BHI260 SDK with shuttle board.
The file Bosch_APP30_SHUTTLE_BHI260_aux_BMM150.cfg has the following lines for physical drivers:
#Physical Drivers
#DriverID,Bus,Addr,GPIO,Cal0,Cal1,Cal2,Cal3,Cal4,Cal5,Cal6,Cal7,Cal8,Off0,Off1,Off2,maxRate,Range
32,spi0,25,2, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 800.000000, 0 #BHI260Accel
33,spi0,25,-, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 800.000000, 0 #BHI260Gyro
24,spi0,25,-, 1, 0, 0, 0, -1, 0, 0, 0,-1, 0, 0, 0, 50.000000, 0 #BMM150Mag_aux
The Bus entries are all spi0 and the Addr entries are all 25.
How all of them use the same spi bus with the same CS pin 25?
Furthermore, BMM150 seems to be connected via i2c according to shuttle schematics.
Am I missing anything?
Solved! Go to Solution.
11-15-2022 01:56 PM
Hi zkz,
In BHI260, accel and gyro can be accessed through the same SPI interface. BHI260 has AUX inside, which can access the BMM150 through the AUX interface. The host can still access the BMM150 indirectly through SPI. Therefore, the same SPI can access accel, gyro and BMM150.
In addition, 25 is the CS inside BHI260.