Setup: C-Project based on "StreamSensorDataOverUsb" with changed printf-format for easier processing.
Expected behavior: Streams data.
Actual behaviour: Unexpected message: "Accelerometer Sensor Application Callback received"
I looked at the code and saw that the callback is triggered by an interrupt. I assume this is a physical interrupt as described in the documentation of the accelerometer BMA280. To make sure this doesn't happen in production, it'd be nice to know what may be the root cause here. Under what circumstances can accelerometer interrupts be triggered on the XDK?
Solved! Go to Solution.
Are you getting "Accelerometer Sensor Application Callback received" message always?
Was XDK device was kept in Static postion?
When XDK device is in Static postion, "Accelerometer Sensor Application Callback received" message will not be printed.
When XDK device is dropped, "Accelerometer Sensor Application Callback received" message will be printed.
Thanks for the answer! The callback mostly occured when I was shaking the device to provoke changing values. In a long-term test during the last days when the device laid around undisturbed, all was fine.