cancel
Showing results for 
Search instead for 
Did you mean: 

Strange threading behavior (Nucleo H7S3L8, ThreadX and NetXDuo)

PhilMaz
Associate II

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)

1 ACCEPTED SOLUTION

Accepted Solutions
PhilMaz
Associate II

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 :)

View solution in original post

1 REPLY 1
PhilMaz
Associate II

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 :)