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
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
Hello!
It would probably help with a bit more context.
What are you trying to do?
Are your semaphores properly defined when you use them?
Best regards,
Einar
The code crashes when after the LOG_INF("Asimuth search done"); in search.c line 36. When it tries to return to the main.c.
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
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