Disable all hardware interrupts in MQX

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

Disable all hardware interrupts in MQX

1,589件の閲覧回数
aakankshagaur
Contributor I

Hello,

I want to perform RAM test at Run time. So I try to disable all MQX interrupt before jumping to the RAM test code using

  _int_disable()

       RAMTest()

_int_enable()

But still the MQX interrupt happen and my code stuck in between.

So could somebody tell me how to disable all the MQX interrupt even with priority levels upto 7 also before jumping to RAM test code.

Or is there any function or preprocessor directives in MQX to enter and exit from critical section?

0 件の賞賛
返信
2 返答(返信)

1,332件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi

These functions (_int_disable and _int_enable) enable and disable ALL interrupts EXCEPT NON MASKABLE interrupts.

I think you can try _mqx_exit(0), this function disable all the interrupts.

Regards

Daniel

0 件の賞賛
返信

1,332件の閲覧回数
aakankshagaur
Contributor I

Hi Daniel,

Thanks for your response but I guess _mqx_exit(0) would not help me because I have many periodic task in the code. And the task which would perform RAM Test will get executed in every 20 milliseconds.

0 件の賞賛
返信