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-EM-CC2340R5: CC2340 wakeup from shutdown

Part Number: LP-EM-CC2340R5
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hi, Ti

I use simplelink_lowpower_f3_sdk_8_40_00_61\examples\rtos\LP_EM_CC2340R53\ble5stack\basic_ble

 We want to use Button(CONFIG_GPIO_SW1) and Motion Sensor (CONFIG_GPIO_MOTION_INT) to wakeup from shutdown.

I set Button wakeup like:

  GPIO_setConfig(CONFIG_GPIO_SW1, GPIO_CFG_IN_PU | GPIO_CFG_SHUTDOWN_WAKE_LOW);

But when I set Motion Sensor wakeup like:

   GPIO_setConfig(CONFIG_GPIO_MOTION_INT, GPIO_CFG_IN_PU | GPIO_CFG_SHUTDOWN_WAKE_LOW);

        1. I found when set Button and Motion Sensor wakeup at the same time,only motion sensor can wakeup but button can’t.How can I wake up by using both the button and the sensor

  I  use cc2745 used implelink_lowpower_f3_sdk_8_40_00_61\examples\rtos\LP_EM_CC2745R10_Q1\ble5stack\basic_ble  to make  a ble connection with cc2340.

when I set cc2340 scan type as active the connection can be successfully established.But when I set cc2340 to passive scanning, cc2340 kept scanning but couldn't successfully connect to cc2745.

        2.I want to change the scan type of cc2340 to passive scanning and successfully connect with cc2745,What can I do to achieve this goal?

  • Hello,

    Thank you for reaching out!

    1. I found when set Button and Motion Sensor wakeup at the same time,only motion sensor can wakeup but button can’t.How can I wake up by using both the button and the sensor

      Are you using both GPIOs at the same time? According to the CC2340R5 technical documentation:
      "Level-based wake-up can be configured individually for each I/O pin. The device goes through a full boot when exiting shutdown, but I/Os remain latched and the software is able to discern that the reset cause is I/O wake-up from shutdown."
      Therefore, combinational logic will not be available.
    2. .I want to change the scan type of cc2340 to passive scanning and successfully connect with cc2745,What can I do to achieve this goal?

      To do this, please go to the sysconfig file of the project, select BLE from the left hand menu, then go to observer configuration and change scan type from active to passive

    I hope this answers your questions!

    Best Regards,

    Tarek

  • Hello Tarek,

    Thank you for your reply!

    1.   I'll set CONFIG_GPIO_MOTION_INT as a DIO1 ,CONFIG_GPIO_BUTTON_0 as DIO10,CONFIG_BUTTON_1 as DIO9.Before cc2340 goto shutdown,I set CONFIG_GPIO_MOTION_INT , CONFIG_GPIO_BUTTON_0 and CONFIG_BUTTON_1 to wake up cc2340. I want to wake up in these three ways from shutdown.Is that combinatorial logic will not be available?
    2.    I already change the cc2340 scan type into passive as you said .Now the problem is after change scan tpye into passive ,cc2340 just keep scanning but can’t connect to cc2745(Advertise).I haven't changed any settings except scan type.When I change scan type back to active,cc2340 can successfully connect to cc2745.Is there any other setting I need to config?
  •  Hello,

    1. I want to wake up in these three ways from shutdown. Is that combinatorial logic will not be available?
      You will be able to use each of these GPIOs individually. However, while in shutdown, the board does not allow the combination of multiple GPIOs.
    2. Is there any other setting I need to config?
      No other settings are needed for the device to passively scan. However, keep in mind that the device should be set to central for it to be able to establish the connection, not observer. And the cc2745 device should be set to peripheral, not advertiser.

    I hope this helps!

    Best Regards,

    Tarek