Issue with IMU Sensor (LSM6DSV16X) Sample Rate in Sensor Hub Mode

I am using an IMU sensor in sensor hub mode (LSM6DSV16X, LIS2MDL) with the FIFO interrupt interval set at 30 Hz. The data is sent over BLE. It works perfectly when using RTT, but when I disable debug mode, the sample rate drops to around 1 Hz.

Could someone please help me resolve this issue?

Thank you.

Parents Reply
  • Thank you for your reply.

    you see the same behavior when setting IMU_SIMULATION to 1 as well?

    yes

    When you say "disable logging", you mean setting these two in your prj.conf?

    I meant, when I connect to RTT. When it connects, I receive a proper signal; once I disconnect it, the frequency of interrupts significantly drops. Here:

    Now, during testing, I just realized that the same behaviour is present even in simulation mode.

    Can you please test the attached project, and measure pin P0.05 using the logic analyzer?

    There is no signal on this pin in any configuration.

    r does the issue only occur when you set IMU_SIMULATION to 0?

    As I mentioned above, yes, it occurred in both modes. I can see the data rate changes on another device connected to this device through BLE.

    Best,

Children
Related