Skip to main content
Visitor II
May 28, 2020
Question

MCU entry hardfault when I called the fuction of MotionFX_CM0P_initialize(), the sensor is LSM6DS3,

  • May 28, 2020
  • 1 reply
  • 1348 views

Hello bro, MCU entry hardfault when I called the fuction of MotionFX_CM0P_initialize(), the sensor is LSM6DS3,  the algorithm I am using is motionFX Library. The stack did not overflow. Do you have any good idea for this problem ? thanks!

    This topic has been closed for replies.

    1 reply

    ST Employee
    May 29, 2020

    Hi @wchao.1​ , please check if this thread can be of any help. They get HardFault after the call of motionFx_CM0P_Initialize() too (with ARM and STM32L031K6). Regards

    wchao.1Author
    Visitor II
    June 1, 2020

    Hi Eleon, thank you for your reply, maybe it is related to the MCU, I found that the hardware CRC initialization needs to be called before calling the library initialization, otherwise the F103 OR F429 will crash. May I ask whether this sensor algorithm can be used on the other MCU, such as NXP or Non-st manufacturer's products. thanks again!

    ST Employee
    June 1, 2020

    These libraries can in principle be used on ARM-based micro-controllers, but the portability across different MCU families is easy only among the ST MCUs, thanks to the STM32Cube software, and is optimized for the ST MCUs interface with ST sensors... Regards