Skip to main content
Visitor II
January 24, 2018
Solved

MotionAR Initialize function gets stuck

  • January 24, 2018
  • 2 replies
  • 1254 views
Posted on January 24, 2018 at 17:10

I am trying to add MotionAR library to a DataLogger sample application running on SensorTile. I manager to compile the library and program my chip with it. Near the top of my main() I added simple MotionAR_Initialize() and MotionAR_GetLibVersion() function calls. It seems that PC is getting stuck in a loop inside of the init function as shown below.

0690X00000609PBQAY.png

I can break out of this beq.n and b.n loop my moving the PC to the ldr line (080070e8) and the program continues fine. I am able to retrieve the version string from the GetLibVersion function.

Any idea what the init function is waiting for?

#sensortile #stm32l4 #motion #st-mems
    This topic has been closed for replies.
    Best answer by Miroslav BATEK
    Posted on January 24, 2018 at 17:21

    Please enable clock forthe CRC module in STM32 microcontroller, it is needed for Initialize function.

    You can also check following topic

    https://community.st.com/0D50X00009XkXvkSAF

    2 replies

    ST Employee
    January 24, 2018
    Posted on January 24, 2018 at 17:21

    Please enable clock forthe CRC module in STM32 microcontroller, it is needed for Initialize function.

    You can also check following topic

    https://community.st.com/0D50X00009XkXvkSAF

    Norman SAuthor
    Visitor II
    January 25, 2018
    Posted on January 25, 2018 at 03:00

    Ahhh, lovely. My pain and suffering solved in one line of code. Thank you!

    __CRC_CLK_ENABLE();

    Visitor II
    March 26, 2020

    Thank you very much ! I had exactly the same problem with execution stuck in MotionEC_Initialize or in MotionMC_Initialize and this solved my problem :grinning_face: