This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LP-CC2651R3SIPA: Test Power Shutdown

Part Number: LP-CC2651R3SIPA
Other Parts Discussed in Thread: CC2651R3SIPA

Hi TI-Expert,

I want to test the Power Shutdown on my CC2651R3SIPA Launchpad, but after Shutdown I'm not able to wake up my device again via button press. Maybe I missed something.

My SW uses the following Instructions:

  1. Power_init();
  2. GPIO_setConfig(CONFIG_GPIO_BTN1, GPIO_CFG_IN_PU | GPIO_CFG_INVERT_ON | GPIO_CFG_IN_INT_BOTH_EDGES | GPIO_CFG_SHUTDOWN_WAKE_HIGH);
  3. Power_shutdown(0, 0);

Maybe my Launchpad doesn't wake up, because of the JTAG connection?

  • Hi Viktor,

    Please refer to gpioshutdown and make sure to disconnect the debugger as well as reset the device before running the example.  As mentioned in the README: "It is not possible to do a proper shutdown sequence with the debugger connected. For correct behaviour, this example must be run with the debugger disconnected by resetting or performing a power-cycle of the device."

    Regards,
    Ryan

  • Hi Ryan,

    thanks for your reply. The example driver gpioshutdown works fine with the my CC2651R3SIPA Launchpad. But if try to integrate the shutdown functionality into the simple_peripheral project it doesn't work. During Test JTAG is disconnected and reset performed.

    I use:

    • CCS 12.1.0.00007
    • TI Clang v2.1.2.LTS
    • SimpleLink SDK CC13xx_CC26xx 6.30.1.03

    For testing I simply added this code snippet to the simple_peripheral project.

    static void SimplePeripheral_handleKeys(uint8_t keys)
    {
      if (keys & KEY_LEFT)
      {
        // Check if the key is still pressed. Workaround for possible bouncing.
        if (GPIO_read(CONFIG_GPIO_BTN1) == 0)
        {
          //tbm_buttonLeft();
    
            /* Configure DIO for wake up from shutdown */
            GPIO_setConfig(CONFIG_GPIO_BTN1, GPIO_CFG_IN_PU | GPIO_CFG_SHUTDOWN_WAKE_LOW);
            GPIO_setConfig(CONFIG_GPIO_BTN2, GPIO_CFG_IN_PU | GPIO_CFG_SHUTDOWN_WAKE_LOW);
    
            GPIO_write(CONFIG_GPIO_RLED, 0);
    
            /* Go to shutdown */
            Power_shutdown(0, 0);
        }
      }
    }

  • Have you also added PowerCC26X2_releaseLatches to disable the IO latches when coming out of shutdown and GPIO_setConfig to tonfigure a DIO for wake up from shutdown?  Please add all of the important shutdown parts of gpioshutdown.c to your simple_peripheral application.

    Regards,
    Ryan

  • You are right, Now it works.

    I would recommened to add this information to the Doxygen comments of the function Power_Shutdown().

    Also in the data sheet of the controller CC2651R3SIPA no information on this topic.

    To me it was not clear, that disabling the IO latches is such an important step.

    Thank you for your help. best regards 

    Viktor