AnsweredAssumed Answered

STM32L151 Can't set SCM or RI

Question asked by turtle.charles on Apr 30, 2015
In debug mode SCM just reverts to 0 everytime I try to set it. I can set ASCR1 Channels just fine in debug, but my code won't set the channels. 
Here's the section that should set these bits
     RI->ASCR1 |= RI_ASCR1_SCM;
     RI->ASCR1 |= RI_ASCR1_CH_0;
If I run this and go into debug they aren't set. But I can manually set VCOMP and CH0. Even though it doesn't seem to actually go into effect.