2017-10-17 08:25 AM
Hi there,
I'm trying to use the ST MotionGC lib in my c++ project. I'm using a STM32L476RG (like the one used as demo) and I'm intending to use the MotionGC lib. So I downloaded it, set my project, build it with the GCC ARM toolchain, everything went fine.
However, as soon as I try to call MotionGC_manager_init(100 Hz), my program freezes. Calling another function like the one that get the lib version doesn't give any result but the program doesn't freeze (everything is fine in this case because the init call must be done first).
What does exactly do the init function ? This could help understanding why it does not work...
The frequency is not the problem according to the official doc (it must be between 25 Hz to 200 Hz).
I would appreciate some help ! Thank you !=)
#motiongc #stm32l476rg #lsm6dsl2017-10-17 08:38 AM
Hi it's me again, I found the solution 2 minutes after my post, and after 1 hour of search.
I enabled the CRC clock by calling __CRC_CLK_ENABLE() as it is done in the demo projects (yes I could have done this earlier... I wanted to... but I didn't ^^).
I do not find any mention of that in the official doc, someone did ?
Best regards,