cancel
Showing results for 
Search instead for 
Did you mean: 

Cant' reset USB without stopping RTC

Kuikui
Associate III
Posted on April 29, 2013 at 01:00

Hello here,

I'm trying to reset USB peripheral before entering stop mode, on an STM32F 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.
0 REPLIES 0