cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F103 RTOS Delay in between threads

ASURE.1
Associate

I am creating a project using STM32F103C8T6 controller in which I am using RTOS. I have 4 threads in it. The functions in each of these threads experiences a significant amount of delay (eg: if any sensor is connected for the value to be read from the sensor or if a keypad is there the button press triggers the function after some time etc etc). Any help and support is highly appreciated... I am using Cube MX and Keil for development

1 REPLY 1
KnarfB
Principal III

Hard to tell. Doesn't look like normal behaviour. Thread priorities play a role here and overall code design (interrupts?, how do you wait?, how do you communicate?). What do you consider a "significant amount of delay"? Can you give a stripped down code example?

There is a tool for real-time tracing FreeRTOS code (wip): https://gitlab.com/KnarfB/timedoctor