cancel
Showing results for 
Search instead for 
Did you mean: 

xQueueSemaphoreTake() hangs for ever

MOtto.1
Associate II

Hi all,

I have a problem on my current design. My setup... .

I have a mqtt client connected to a broker. I use the lwip library together with freertos STMCube provides. So it's mainly default. I have one task for sending and receiving. Now all works for a long time. No problem. But for any reason it stalls after a while unpredictably and do not come back as usual. My task is in blocking mode and my work around for now is i placed a watchdog in that task which gets invoked. But that is not they way it should be. I need some hints where to look up in code or has any one a idee?

1 REPLY 1
SofLit
ST Employee

Hello,

You need also to indicate the device you're using so community members can help you efficiently.

Check this semaphore: where/when it is released and where/when it is taken. It could be you are in deadlock situation.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.