Threads get suspended forever after calling tx_thread_sleep() [SOLVED]
Hi everyone,
I'm trying to create an example following this article. I'm using the STM32F429I-DISC1 evaluation board and using X-CUBE-AZRTOS-F4.1.0.0 software package.
https://community.st.com/s/article/how-to-create-a-thread-using-azurertos-and-stm32cubeide
I have one problem that the thread gets suspended forever when calling the tx_thread_sleep(ULONG timer_ticks) function. My source code and configuration is basically the same as that in the article. Do you guys have any idea what's the problem is?
For your information, I create a TX_TIMER in parallel to interrupt every 10 ticks to check if the system tick timer is running. The timer is created successfully (return TX_SUCCESS), but unfortunately it doesn't run either. When I delete tx_thread_sleep(), everything, including the timer, works normally.
I also try to create two threads A and B. Both can only run once and get suspended forever. And it works when I delete the tx_thread_sleep().
VOID my_thread_entry(ULONG initial_input)
{
TX_THREAD* thread_info = tx_thread_identify();
while(1){
printf("\r\nThis is Thread %s", thread_info->tx_thread_name);
tx_thread_sleep(1);
}
}Thanks in advance,
Giang
