MQX Lite always stays in idle loop

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MQX Lite always stays in idle loop

ソリューションへジャンプ
595件の閲覧回数
rubenjonsson
Contributor II

Hi,

I have a stand alone MQX lite PE project (no separate bsp or psp lib project) with a custom board and a MK22FN128VLH10 (64 pin LQFP with 128k flash and 24k ram).

I use KDS 3.0.0, KSDK 1.3.0, PE 3.0.1 and the micro is running at 100MHz from a 10MHz crystal.

There are 2 tasks plus the idle tasks.

The 2 tasks are in an endless while(1) loop and mostly doing _time_delay_ticks(). For now everything else has been removed for debugging purposes.

At first the tasks behave as expected but after a short while the two tasks does not come back from _time_delay_ticks(), instead the idle task is running all the time. How is this possible and what is the best practice to debug this situation?

There are also some interrupts running but they are at the moment not doing anything either.

MQXLITE01.jpg

タグ(1)
0 件の賞賛
返信
1 解決策
424件の閲覧回数
rubenjonsson
Contributor II

Got this sorted myself. It appears that I had set the task priority too high (low value, high prio) for the tasks which prevented/stopped/blocked the task switching.

/Ruben

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
425件の閲覧回数
rubenjonsson
Contributor II

Got this sorted myself. It appears that I had set the task priority too high (low value, high prio) for the tasks which prevented/stopped/blocked the task switching.

/Ruben

0 件の賞賛
返信