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.

DBGM Only for debug or other impacts?



Hello 

I have a question about the DBGM flag.
I have currently the code below in my SW : asm(" clrc DBGM").
If i have a correct understanding, this flag is only used for debug.
When i want to have a release version (where no debug is needed), i can removed this code without any impact on my software ? 

Thanks for you help

  • Correct, you should be able to remove asm(" clrc DBGM") without impacting your software. Clearing DBGM ensures that memory and register values can be accessed for use for updating debugger windows, essentially allowing halt requests within ISRs. Once removed, this test functionality will be disabled and the halt requests in ISRs will be ignored.

    Best Regards,
    Chris