Skip to main content
Visitor II
January 28, 2021
Question

STM32F103 RTOS Delay in between threads

  • January 28, 2021
  • 1 reply
  • 804 views

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

    This topic has been closed for replies.

    1 reply

    Super User
    January 28, 2021

    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