AnsweredAssumed Answered

Cant' reset USB without stopping RTC

Question asked by VDM on Apr 29, 2013
Hello here,

I'm trying to reset USB peripheral before entering stop mode, on an STM32F102.

But if I do so, the RTC (which runs from LSI) stops ..

Any idea why ?

Here is the code :
RCC->APB2RSTR = 0xFFFFFFFF;
//RCC->APB1RSTR = RCC_APB1Periph_USB;
RCC->APB2RSTR = 0;
RCC->APB1RSTR = 0;
PWR_EnterSTOPMode(PWR_Regulator_LowPower, PWR_STOPEntry_WFI);


Thanks for your help.

BR,
Vincent.

Outcomes