Skip to main content
Visitor II
February 8, 2024
Solved

xQueueSemaphoreTake() hangs for ever

  • February 8, 2024
  • 1 reply
  • 1211 views

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.
    Best answer by mƎALLEm

    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.

    1 reply

    mƎALLEmAnswer
    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.