Hi team,
Customer would like to know how does AWR1642 turn off all interrupts and task switching in the process of writing flash or other operations that cannot be interrupted?
Thanks.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi team,
Customer would like to know how does AWR1642 turn off all interrupts and task switching in the process of writing flash or other operations that cannot be interrupted?
Thanks.
Hi Annie,
That can done by executing specific code within critical section, where execution can not be disturbed by any interrupt.
Please look for this code snippet in SDK source
/* critical section protection */
key = HwiP_disable();
/* here is the code to execute within critical section */
/* Release the critical section */
HwiP_restore(key);
Regards,
Jitendra