cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F030F4P6 Enter in standby mode without SysTick

9056766
Associate II
Posted on February 24, 2016 at 07:55

When disable:

//if (SysTick_Config(SystemCoreClock/2000-1))

//{ while(1){;} }

Then STM32 entering and exiting in standby mode. When not disable previous code, then STM32 do not enter in standby mode.

When enable previous code and disable SysTick timer before enter in standby mode:

SysTick->LOAD=0x00000000;

SysTick->CTRL=0x00000000; 

SysTick->VAL=0x00000000; 

SysTick->CTRL &= ~(SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk | SysTick_CLKSource_HCLK | SysTick_CLKSource_HCLK_Div8);

//NVIC_SetPriority(SysTick_IRQn, 0);

NVIC_DisableIRQ(SysTick_IRQn);

Then STM32 do not enter in standby mode. How STM32 enter in standby mode with disabled SysTick timer before enter in standby mode?
0 REPLIES 0