Number of K24 interrupt priorities?

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

Number of K24 interrupt priorities?

ソリューションへジャンプ
1,169件の閲覧回数
fcw
Contributor IV

I'm chasing down what appears to be screwball interrupt responses. Section 3.2.2.1 of the K24 reference manual states the chip has 16 interrupt priority levels. The MQX PSP cortex.h header states  "#define CORTEX_PRIOR_IMPL  (3) " which is manipulated into a left-justified 3-bit mask as required for the NVIC.

- Does the chip have 8 or 16 levels?

- If 16, is the use of 8 by MQX intentional?

タグ(2)
0 件の賞賛
返信
1 解決策
1,054件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi FRED WEDEMEIER

On Cortex-M4 and Cortex-M5 core based platforms, the MQX RTOS interrupt processing is designed this way.

Kinetis K family MCUs support 16 hardware interrupt priority levels. Internally MQX RTOS maps even levels (0,2,4,...,14) for MQX RTOS applications while odd levels (1,3,5,...15) are used internally.

MQX RTOS application interrupt levels are 0 to 7, the mapping from MQX RTOS application levels 0 to 7 to hardware priority levels (0, 2, ..., 14) is implemented in the _bsp_int_init() function.


Have a great day,
Daniel

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,055件の閲覧回数
fcw
Contributor IV

Got it. Thank you!

0 件の賞賛
返信
1,055件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi FRED WEDEMEIER

On Cortex-M4 and Cortex-M5 core based platforms, the MQX RTOS interrupt processing is designed this way.

Kinetis K family MCUs support 16 hardware interrupt priority levels. Internally MQX RTOS maps even levels (0,2,4,...,14) for MQX RTOS applications while odd levels (1,3,5,...15) are used internally.

MQX RTOS application interrupt levels are 0 to 7, the mapping from MQX RTOS application levels 0 to 7 to hardware priority levels (0, 2, ..., 14) is implemented in the _bsp_int_init() function.


Have a great day,
Daniel

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信