This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

RTOS problem in Keil

Hi,

I am using Keil to edit the "DataLog" example application provided in STSW-STLKT01_V2.5.0. I want to use the MotionDI library to get orientation and linear acceleration of my device (STEVAL-STLKT01V1) in real time. For that purpose, I want to insert the MotionDI_update(&data_out, &data_in) function in the DataLog application code. The DataLog application code uses 2 threads to get and print the data from accelerometer and gyroscope. I add the  MotionDI_update(&data_out, &data_in)  in the WriteData_Thread. However, my code hangs after I get the orientation and acceleration for the first time. How to get rid of this issue?

I tried increasing stack size but no success. I want to continuously get data in real time. My code is attached as well.

0