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.

CC2640: STANDBY wake-up with BLE issue

Part Number: CC2640


Hi!

I'm working with modified Project_zero example (TI_RTOS is used) and need to put the MCU into STANDBY mode by event (BLE) and wake up on Sensor Controller ALERT.

I use the following code for testing purposes. It is called at the beginning of ProjectZero_taskFxn once (before loop).

  UInt keyHwi = Hwi_disable();
  scifOsalEnableTaskAlertInt();
  UInt keyTask = Task_disable();

  Semaphore_pend(sem, Semaphore_PendState_WAIT_FOREVER);
  testFlag = 1;
  RF_cancelCmd(h, ch, mode)
  RF_postCmd(h, pOp, ePri, pCb, bmEvent)
  
  Task_restore(keyTask);
  Hwi_restore(keyHwi);

Everything works when Power_setConstraint(PowerCC26XX_SB_DISALLOW); is used (i.e. the deepest sleep mode MCU can achieve is the IDLE mode). In this case device starts advertising after Sensor Controller interrupt is generated.

When STANDBY is allowed it looks like the MCU doesn't wake up. I assume, the problem here is that RFCORE power domain is not restarted after the Sensor Controller event wakes up the MCU.
Am I correct? If yes, could you provide any example on how to perform this re-initialization?

Regards,
Anton.