cancel
Showing results for 
Search instead for 
Did you mean: 

MotionAR Initialize function gets stuck

Norman S
Associate II
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
1 ACCEPTED SOLUTION

Accepted Solutions
Miroslav BATEK
ST Employee
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

View solution in original post

3 REPLIES 3
Miroslav BATEK
ST Employee
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

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 II

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 😀