Skip to main content
Associate II
October 8, 2024
Solved

Strange threading behavior (Nucleo H7S3L8, ThreadX and NetXDuo)

  • October 8, 2024
  • 1 reply
  • 1444 views

Good afternoon, 

I'm writing this quick post to know if by any chance someone can help me figure out what is happening with a simple threading project I started on the H7S3L8 board. 

I'm using ThreadX and NetXDuo, to have a Modbus server on the ETH port.
I have an additional thread processing data from other sensors. 

And when I debug the application, as soon as the second thread starts, I can no longer see the other thread running. 
Here's an screenshot when I enter the first thread: (all good, I2C1 and NexDuo thread are there)

PhilMaz_0-1728390220790.png

Once I enter the breakpoint on the second thread (I2C1) everything disappears (and I will never enter into the first thread ever again)

PhilMaz_1-1728390283765.png

I left the threads empty on purpose (I removed as much code as I could to pinpoint the issue)
But right now, I'm a bit puzzled...could it be a configuration issue? 

(The project is attached as well)

This topic has been closed for replies.
Best answer by PhilMaz

It looks like I didn't allocate enough memory to the ThreadX memory pool. 
I'm slowly putting back features in the threads, but it looks like it was the issue. Sorry for panicking too soon :)

1 reply

PhilMazAuthorBest answer
Associate II
October 14, 2024

It looks like I didn't allocate enough memory to the ThreadX memory pool. 
I'm slowly putting back features in the threads, but it looks like it was the issue. Sorry for panicking too soon :)