cancel
Showing results for 
Search instead for 
Did you mean: 

MotionFX_initialize() hangs

jagauthier
Associate III

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.

2 REPLIES 2
niccolò
ST Employee

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ò

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.