cancel
Showing results for 
Search instead for 
Did you mean: 

FreeRtos V1 vs V2 - osThread inside another osThread

xianrecords
Associate III

Hello

I am using a Nucleo-F429 board and I was experimenting around FreeRtos.

I tried to create osThread within another osThread in FreeRtos V1 but it seems that it is not calling the inside thread.

When I change to FreeRtos V2, then the 2nd thread/task was called.

Any reasons why ?

Also, in V2, what should be the stack size of the parent thread ? Should it be bigger than the child thread ?

1 ACCEPTED SOLUTION

Accepted Solutions
xianrecords
Associate III

So I figured out that my Lwip code generated by CubeIDE was for FreeRtos V2 and when I switched back to V1, the Lwip stack did not change back to V1 so it would not start.

View solution in original post

2 REPLIES 2
Bob S
Principal

> seems that it is not calling the inside thread

Not sure exactly what you mean.  Do you mean the "inside" thread (the one created in the first thread) never runs?

Post your code.  Without that we can't help you.  And when posting, use the "code tag" for your code (click onthe "..." icon in the format bar above, then the "</>" icon).

xianrecords
Associate III

So I figured out that my Lwip code generated by CubeIDE was for FreeRtos V2 and when I switched back to V1, the Lwip stack did not change back to V1 so it would not start.