Skip to main content
Norman S
Associate II
January 24, 2018
Solved

MotionAR Initialize function gets stuck

  • January 24, 2018
  • 3 replies
  • 1276 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

3 replies

Miroslav BATEKBest answer
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 S
Norman SAuthor
Associate 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();

Vincent.N
Associate
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: