Skip to main content
vitthal muddapur
Associate III
February 18, 2018
Question

stop mode not working ?

  • February 18, 2018
  • 2 replies
  • 722 views
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

    This topic has been closed for replies.

    2 replies

    Nesrine M_O
    Associate
    February 19, 2018
    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-

    Tesla DeLorean
    Guru
    February 19, 2018
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..