cancel
Showing results for 
Search instead for 
Did you mean: 

stop mode not working ?

vitthal muddapur
Associate II
Posted on February 18, 2018 at 09:20

i am new in stm32 

if (HAL_LPTIM_Counter_Start_IT(&LptimHandle, 1000) != HAL_OK)

{

Error_Handler();

}

HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI);

/* Infinite Loop */

while (1)

{

BSP_LED_Toggle(LED2);

HAL_Delay(3000);

}

it does not enter the stop mode continue led on and off

2 REPLIES 2
Nesrine M_O
Lead II
Posted on February 19, 2018 at 16:36

Hi

vrmuddapur93

,

  1. Could you please precise your STM32 product,
  2. As new user of STM32 product, I recommend you to start with ready example under the STM32 firmware package,
  3. as example if you are using STM32L1 product, you can start from

    http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-mcu-packages/stm32cubel1.html

    package :STM32Cube_FW_L1_V1.8.0\Projects\STM32L152RE-Nucleo\Examples\PWR\PWR_STOP_RTC

-Nesrine-

Posted on February 19, 2018 at 17:04

From other threads we've got this focused to an L073 now

https://community.st.com/0D50X00009XkWl7SAF

 
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..