MPU FAULT

I am getting this fault when i try to run a observer handler where i have implemented semaphores.

And i cant figure out what this error code means

Thanks in advance

Parents Reply
  • Have you confirmed that it crashes before it is able to return to main?

    If not, could you place similar prints before and after the k_sem_take call, and in your while loop, to get a better idea of exactly how far your program reaches?

    Looking at similar cases, it seems like this could be related to running out of space in your stack, but I'm not sure what in your program would cause this.

    I'm not able to easily see how you've set up your data processing stuff, is it running in its own thread that's started by initiate_modules()?

    In that case, could it be that some thread keeps adding data to some queue that ends up overflowing?

    -Einar

Children
No Data
Related