Skip to main content
Visitor II
February 9, 2024
Solved

FreeRtos V1 vs V2 - osThread inside another osThread

  • February 9, 2024
  • 2 replies
  • 1465 views

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 ?

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

    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.

    2 replies

    Super User
    February 9, 2024

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

    xianrecordsAuthorAnswer
    Visitor II
    February 11, 2024

    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.