Skip to main content
SHaue.2
Associate
Feb 20, 2023 2:03 PM UTC
Solved

ThreadX does not start scheduling

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?

This topic has been closed for replies.
SHaue.2
SHaue.2Best answer
Associate
Feb 21, 2023 8:28 AM UTC

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
Feb 21, 2023 8:28 AM UTC

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
Jul 26, 2024 9:19 AM UTC

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?