AnsweredAssumed Answered

FXLC95000 doesn't read data from FXAS21002

Question asked by Vitaliy Siplichuk on Jul 14, 2015
Latest reply on Jul 21, 2015 by Aswin Sivakumar

Hello!
I try to use FXLC95000 with FXAS21002 in KITFXLC95000EVM dev board and MailboxTool, ISF1.1.
I have example project FXAS21002_Project.
I send commands via MailboxTool:

29 00

02 02 00 01 03 - start the flow of sensor data, subscribe_sensor

 

When I use logic analyzer I see that fxlc95000 asks sensor about WHO_AM_I register and gets answer D7. As I understant it's right behavior of programm. But I don't understand why doesn't it start to read data from sensor???

fxlc95000 should start to read data. But there is no any activity on I2C bus after reading of WHO_AM_I register.

I found out that my gyro_app_task stacks in function:
_lwevent_wait_for(&gEventGroup, SENSOR_DATA_READY_EVENT, FALSE, NULL);
and programm doesn't go to next functions of this task. And when I try to read data with command 02 03 00 0A I get zeros instead of sensor data. I don't know how to find the reasons because this function is closed for me and I don't know what is going on inside.

 

Can you explaine to me what does this function do inside and why doesn't it go to next functions? Any ideas?

Outcomes