Olli, I'm able to reproduce your issue reliably and have narrowed down the issue to the CS_initClockSignal(). Strangely, if you step through the function its ok, but trying to run even at debug speed causes a PUC. I am unable to get the PUC to occur with register level code (no DriverLib function) however. This means to me we have a bug within this DriverLib function. My workaround for you would be to not use the CS_initClockSignal() and to set your MCLK and SMCLK initial values via register level code like so. CSCTL0 = CSKEY; CSCTL2 |= SELM__DCOCLK + SELS__DCOCLK; CSCTL3 |= DIVM__1 + DIVS__32; I'll report this issue to the DriverLib team in the mean time. Thanks for your detailed investigation.
↧