I2C communication with 9-axis sensor LSM9DS1

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
I have the problem with I2C. I want to communicate with STM LSM9DS1 by means of RelaxKit. It is strange but when I run embedded application in debug mode it works however if I run embedded application in normal mode it does not work.

Do you have any idea what is the reason. If I analyse I2C signal in debug mode by means of Logic Analyser I can see that there is a I2C signal unfortunately if I try to run it in normal mode it does not work...............

If you have some suggestions please tell me. Every information is highly appreciated.........
0 Likes
1 Reply
chismo
Employee
Employee
First like received
Hello,

Are you able to determine at which instance did the I2C communication fails?
For example, start condition is not generated, start condition is generated and slave address sent but no acknowledge is received, etc.

Also, when testing in debug more, do you mean it works only if you single-step through the code?

Regards,
Min Wei
0 Likes