Skip to main content
SHaue.2
Associate
February 20, 2023
Solved

ThreadX does not start scheduling

  • February 20, 2023
  • 2 replies
  • 2713 views

Hi,

my application is loaded via the bootloader and i sstarted. Two threads are generated and it seems properly generated because one thread is in ready state while the other is in suspended state.

Systick is used for the ThreadX and TIM6 is used for the HAL-Tick.

But the scheduler doesn't start the ready thread.

Had somebody a similar problem? Can it be a priority problem of the timers?

Best answer by SHaue.2

To answer my own question:

The problem was caused by the PendSV handler which was not called of the Threadx source but from the applications interrupt handler. The PendSV handler of Threadx does the scheduling.

2 replies

SHaue.2
SHaue.2AuthorBest answer
Associate
February 21, 2023

To answer my own question:

The problem was caused by the PendSV handler which was not called of the Threadx source but from the applications interrupt handler. The PendSV handler of Threadx does the scheduling.

Associate II
July 26, 2024

Hello,

I'm a beginner and I think I'm facing this problem.

In fact, when I unplug my card and then plug it back in, the de program won't restart.

And I wanted to know how you managed to solve it.

You mentioned prendSV but I don't know what to do. Could you help me please?