I2C crashes when I use gyroscope


#1

Hi,
I use gyroscope on mangOH green. I read G-force every 1sec. After 3-5min I could not read values. After digging to find a reason of the behaviour, I have noticed mangOH has not detected I2C adresses. I dont use FIFO. Has someone experience the same problem? I use WP8548 processor.


#2

Update - I run gyroscope and other I2C device in other process. I think I2C is not thread safe. Am I correct?


#3

I have verified in WP8548. i am able to see below i2c devices with their address that are connected to i2c bus in mangoh green.

root@swi-mdm9x15:~# i2cdetect -y -r 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – -- – -- – -- – -- – -- – -- –
10: – -- – -- – -- – -- – -- UU – -- – -- –
20: – -- – -- – -- – -- – -- – -- – -- – --
30: – -- – -- – -- – -- – -- UU – -- – -- –
40: – -- – -- – -- – -- – -- – -- – -- – --
50: – -- – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- – -- 6a – -- – -- –
70: – 71 – -- – -- – --
root@swi-mdm9x15:~#


#4

Hi,
I can see I2C addresses as well. But when I used I2C in 2 threads (one gyroscope, one other thing) I2C crasheed and all addresses disappeared. I have synchronized threads and everything is ok now.