cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L151 Can't set SCM or RI

amphibulator
Associate
Posted on April 30, 2015 at 02:39

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_VCOMP;

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.

#ri-routing-interface #scm
0 REPLIES 0