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.

IAR Debugger failure

Other Parts Discussed in Thread: CC2540

Any time after the following is run, the IAR debugger fails to show correct values for static variables ("Statics" box).

        SLEEPCMD |= OSC32K_CALDIS;            // don't allow auto cal of 32KHz
        CLKCONCMD = (CLKCONCMD & ~(CLKCON_CLKSPD | CLKCON_OSC)) | CLKCON_CLKSPD_16M;
        while(CLKCONSTA & CLKCON_OSC);

Code & breakpoints continue to run properly, but cannot debug viewing static variables.

Have I set up IAR options wrong?  I don't see problem in the simple rosc/xosc software examples workspace provided by TI (clk_hs_xosc.c).

Thank you,

GG