cancel
Showing results for 
Search instead for 
Did you mean: 

NetX Internal Mutex Contention

RahulPatel
Visitor

Hi all,

I'm using ThreadX with NetX Duo and running a Modbus TCP server on an STM32 platform. The system works fine under normal conditions, but I encounter a hang when the following sequence occurs:

  1. A Modbus TCP client is actively communicating with the board.
  2. The client is closed or a Telnet session is opened.
  3. The client reconnects — at this point, the system hangs.

From the ThreadX-aware debugger:

  • Main Ip instance and Packet Monitor Thread are suspended, waiting on a mutex.
  • The mutex is owned by my App Modbus TCP Thread, even though I don’t explicitly use any mutexes.

It seems like the NetX internal mutex is being held too long.

Can I trace or monitor the internal NetX mutex usage to better understand where the contention is happening?

0 REPLIES 0