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.

CC2640R2F: In the Low-power electronics, setting rules using (Power_setDependency) failed

Part Number: CC2640R2F


I am trying to implement a low-power transparent device, and I have enabled power management and energy-saving using the following code in main. c

int main()
{
    ...
    Power_init();
    Power_enablePolicy();
    Power_releaseConstraint(PowerCC26XX_SB_DISALLOW);
    ...
}

I have set up interrupt reception for the serial port, and I need my serial port to always have the function of receiving. Therefore, in (my_peripheral. c), I used the following code to set rules to avoid the serial port being blocked by the power management program:

myBLE_peripheral_init()
{
    ...
    UserUartInit();
    UartSendData("Init over\r\n",11);

    Power_setDependency(PowerCC26XX_PERIPH_UART0);
    ...
}

It seems that the program did not execute as I expected. My serial port can only send data and cannot receive data normally. Is there any problem with my method, how to achieve my goal, and are there any relevant examples to refer to?

  • Hi Alex,

    TI Drivers are already configure to handle power savings.

    The Power driver will then ensure the device is always set in the most power efficient mode depending on the operations running.

    For these reasons, I would recommend you remove all the calls to the Power driver in the application layer and let the TI drivers handle interfacing with the Power driver.

    I hope this will help,

    Best regards,