cancel
Showing results for 
Search instead for 
Did you mean: 

Undefined reference to 'osThreadJoin'

RLee.2
Associate II

Hi forum,

I'm developing using the STM32CubeIDE on the NUCLEO-F746ZG board running FreeRTOS. In the process of developing my application that makes heavy use of OS constructs, I've run into a missing/unimplemented function problem, namely osThreadJoin. The function is declared in cmsis_os2.h, but not defined in cmsis_os2.c, with all the other OS functions. How can I get access to this function?

Thanks,

Richard

3 REPLIES 3
JBaco.1
Associate

Hi all,

Same problem here. Anyone as a solution ?

Thanks.

Julien

SGeof.1
Associate

Hi,

Did you guys figure out a solution?

Thanks,

Sam

ZDima
Associate II

After hour of search found this on github.com:

/ARM-software/CMSIS-FreeRTOS/blob/9cf2e4b4f621abfed0ee2de421d31988f8b1b0f6/DoxyGen/General/src/cmsis_freertos.txt#L733

Thread Management:

- osThreadDetach: \token{not implemented}

- osThreadEnumerate: supported

- osThreadExit: supported

- osThreadGetCount: supported

- osThreadGetId: supported

- osThreadGetName: supported

- osThreadGetPriority: supported

- osThreadGetStackSize: \token{not implemented}

- osThreadGetStackSpace: supported

- osThreadGetState: supported

- osThreadJoin: \token{not implemented}

- osThreadNew: supported

- osThreadResume: supported

- osThreadSetPriority: supported

- osThreadSuspend: supported

- osThreadTerminate: supported

- osThreadYield: supported

Also in the same document:

- osThreadDetach, osThreadJoin() and attribute osThreadJoinable are not supported (osThreadNew returns NULL when osThreadJoinable attribute is specified).

It would be nice if this information was clearly stated in documentation (?) and in the headers.