This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

code stuck with nrf52-mpu-easydma-using-timers-and-drivers

Hello Everyone,

I am using /nrf5-mpu-examples nrf52-mpu-easydma-using-timers-and-drivers. When I tried to change the TWIM_RX_BUF_WIDTH to get the gyro data, the code stuck in while loop and no event come. After experimenting with TWIM_RX_BUF_LENGTH when I change the length to 3, the code runs smoothly. changing TWIM_RX_BUF_LENGTH to even 4 and then no event come and thus no data at all. I think it is stack size issue and I even change that in arm_startups from 8192 bytes to even 30KB but no improvement. I want to use sensor fusion library along with it and it is a small library but the code stuck issue is really a pain. 

Kindly help me if you ever come across this problem.

Thank you

Parents Reply Children
No Data
Related