Skip to main content
Visitor II
May 27, 2021
Question

MotionFX_initialize() hangs

  • May 27, 2021
  • 1 reply
  • 914 views

I've added motionFX to my project, which is an STM32F446, and i2c attached LSM6DSOX.

I can read/write to the IMU using traditional methods (I2c) but I wanted to utilize the motionFX library, and when I initialize, the debugger hangs at the initialize function.

I did read that CRC needed to be enabled, so I went back into the CubeMX project and enabled CRC. But alas, still hangs.

    This topic has been closed for replies.

    1 reply

    ST Employee
    June 8, 2021

    Hi @Community member​ ,

    can you check exactly which part of the initialization returns an error?

    by "hangs" you mean it returns a hard fault?

    Niccolò

    Visitor II
    June 21, 2021

    Yes, and I believe I figured out why. Came back here in case someone else finds this. The device I was using with CubeMX was not LSM6DSOX. I chose one of the other LSM6D devices accidentally. This caused the hardware to not initialize correctly.