Skip to main content
PMach.1
Senior
Mar 22, 2021 4:17 PM UTC
Solved

Unable to initialize MotionGC.

Hi,

I am unable to initialize MotionGC library, since the function MotionGC_Initialize(&val) does not stop execution (pretty much like an infinite loop).

Checking on the User Manual (UM2181), it is stated as a note regarding this function that " the CRC module in STM32 microcontroller (in RCC peripheral clock enable register) has to be enabled before using the library".

Is this the root of the problem and if so, which is the RCC peripheral clock enable register?

This topic has been closed for replies.
Miroslav BATEKBest answer
ST Employee
Mar 22, 2021 4:33 PM UTC

Yes. it is most probably root cause of your problem.

If you use STM32 HAL drivers you need to enable CRC peripheral i.e. using HAL_CRC_Init().

2 replies

Miroslav BATEKBest answer
ST Employee
Mar 22, 2021 4:33 PM UTC

Yes. it is most probably root cause of your problem.

If you use STM32 HAL drivers you need to enable CRC peripheral i.e. using HAL_CRC_Init().

PMach.1
PMach.1Author
Senior
Mar 24, 2021 3:43 PM UTC

You're totally right. It did solve the problem.

Many thanks. Cheers!