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.

Disable emulation in C2000 F2808



Hi to everybody

I found these 2 lines of code in the main routine:

 SetDBGIER(IER);                        // Configure the DBGIER for realtime debug
 asm(" CLRC INTM, DBGM");            // Enable global interrupts and realtime debug

Doing so, I guess that realtime debug is enabled...

I'd like to disabled it, so should I do like this:

 //SetDBGIER(IER);                        // Configure the DBGIER for realtime debug
 asm(" CLRC INTM");            // Enable global interrupts and realtime debug

?

I imagine this is a trivial question, but I want to be sure! ....:-)

Are there any kind of problem if realtime debug is enabled even if I'm not using it?

thanks, I'll pay a bier to the first one that answer :-)

samuele

  • Samuele,

    Yes, realtime debug/interrrupts are disabled by default so simply not configuring the DBGIER register or clearing the mask (DBGM) will work to keep realtime disabled.

    samuele^_^ said:
    Are there any kind of problem if realtime debug is enabled even if I'm not using it?

    No - if you arn't using realtime then there is no reason to configure it.

    Regards

    Lori