For example, if you need to debug an application but do not want the code to enter the interrupt service routine during the stepping, the interrupt request can be masked. This is done by setting the C_MASKINTS bit in the Debug Halting Control and Status register (0xE000EDF0).
I made small debug function FUNC void DisableIrq (void) { _WDWORD(0xE000EDF0, _RDWORD(0xE000EDF0) | 0xA05F0008); } in cpu halt state, i execute this function and i can see in the memory debug windows the correct register value of address 0xE000EDF0, the value is 0x0003000B.
after one step the C_MASKINTS bit will be cleared again, maybe from the Debugger itself, the value of the address 0xE000EDF0 is now 0x00030003.
Is it possible to disable temporary all IRQ's with the debugger ?