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?
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
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.