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.

Turning of the DCDC on sleep - CC2540 vs CC2541

Other Parts Discussed in Thread: TPS62730

I'm working with the SimpleBLEPeripheral program.

I've replaced the CC2540DB drivers with the CC2541ST drivers, since I needed to use a sensor.

I noticed that the hal_sleep.c is different between both directories.

In CC2541ST, DCDC_SBIT is set to 0 before going to sleep and to 1 when waking up.

On CC2540EB, going to sleep doesn't affect the DCDC_SBIT, but the SimpleBLEPeripheral_Init function calls:

    // Enable stack to toggle bypass control on TPS62730 (DC/DC converter)

    HCI_EXT_MapPmIoPortCmd( HCI_EXT_PM_IO_PORT_P0, HCI_EXT_PM_IO_PORT_PIN7);

(if DC_DC_P0_7 is defined).

Is there a major difference between toggling the control on the DC/DC from the stack vs from the program?

Is there any danger in changing the DC/DC that supplies power to the processor - while the processor executes code?

The documentation of HCI_EXT_MapPmIoPortCmd specifically states "This command should be used with extreme care"...