I2C error Is there a way to thow and catch this error? #724
Replies: 2 comments
-
Posted at 2017-06-12 by @gfwilliams If you do:
then it should work? your inability to catch the error might be because your External_Clk function is itself called from a timeout? Worst case you can use |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-06-12 by ClearMemory041063 Thanks @gordon for the prompt reply.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-06-12 by ClearMemory041063
The error message
Uncaught InternalError: Timeout on I2C Read Receive
The usual suspect are pull up resistors
Other causes
You send a command via I2C that causes the device to require a delay before it is ready to talk I2C again.
Examples for the BNO055 are reset, change clock between internal and external
One solution is to use a callback
Is there a way to throw and catch the error and then try again N times or until the error clears?
The external clock function with callback
Beta Was this translation helpful? Give feedback.
All reactions