I have edited the real-time 'DataLog' application provided in STSW-STLKT01_V2.5.0 to include the MotionDI_update function. However, my code hangs after I get the tilt and acceleration values for the first time. How to solve this?
int main(void) { HAL_Init(); /* Configure the System clock to 80 MHz */ SystemClock_Config(); MX_GPIO_Init(); MX_DMA_Init(); MX_CRC_Init(); MX_RTC_Init(); MotionDI_Initialize(&freq); /* Optional: Get version */ //...