Created a thread but not getting any log of the thread subroutine in console
Hi All,
I am new to ST.
I am trying to create a thread in STM32L4 - discovery board from my main process. I am getting a non-NULL handle from the thread which means the thread is created successfully. However, I don't see any log from the thread in the console.
Can someone please help me understand what am I missing ?
I am providing my code details below
regards,
-----------------------------------------
//Thread definition :
void threadCtx (void *argument);
osThreadDef(notification, threadCtx, osPriorityNormal, 1, 128);
void threadCtx (void *argument)
{
printf("\n Inside thread .....\n");
while (1)
{
// do something
}
printf("\n exiting thread .....\n");
}
//thread creation :
osThreadId threadStatus = NULL;
threadStatus = osThreadCreate (osThread(notification), NULL);
if ( NULL != threadStatus )
{
printf ("thread created successfully..........threadStatus = %p\r\n", threadStatus);
}
else
{
printf(" ERROR : thread creation failed \r\n");
}
mainCtx();
osKernelStart();
Console output :
.
.
thread created successfully..........threadStatus = 0x66284943
.
prints from mainCtx
.
.
.
.
NO prints from threadCtx () ---> why ?