4 Replies Latest reply on Jul 10, 2016 10:28 PM by jone_yi_1844281

    Standby mode with STM32F411 + BCM43362 WICED module

    moon.2

      Dear,

       

      I am using USI BM-30 module and would like to use standby mode.

       

      I found some code in the SDK 3.5.2 but it keeps reset without any input.

       

      void application_start(
      )

      {

          wiced_bool_t led1 = WICED_FALSE;

          wiced_bool_t led2 = WICED_FALSE;

          wiced_bool_t button1_pressed;

          wiced_bool_t button2_pressed;

       

          /* Initialise the
      WICED device */

        
      wiced_init();

       

        
      WPRINT_APP_INFO( (
      "The LEDs are flashing. Holding a button will force the
      corresponding LED on\n"
      ) );

       

          wiced_gpio_output_low( WICED_LED1
      );

          wiced_gpio_output_low( WICED_LED2
      );

            
      printf(
      "device_standby_mode\n");

            
        PWR_ClearFlag(PWR_FLAG_SB);

       

            
       
      /*
      Clear Wakeup flag*/

            
        PWR_ClearFlag(PWR_FLAG_WU);

       

            
       
      /*
      Enable WKUP pin 1 */

            
        PWR_WakeUpPinCmd(ENABLE);

            
      PWR_EnterSTANDBYMode();

      }

       

      Would you please help on this issue?

       

      Thanks,

      Moon