Skip to main content
MOtto.1
Associate III
February 8, 2024
Solved

xQueueSemaphoreTake() hangs for ever

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?

This topic has been closed for replies.
mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
February 8, 2024

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 "Best answer" on the reply which solved your issue or answered your question.

1 reply

mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
February 8, 2024

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 "Best answer" on the reply which solved your issue or answered your question.