danielohh / LaunchPad_Demos

init commit
0 stars 2 forks source link

low power mode #1

Open github4f opened 7 years ago

github4f commented 7 years ago

Hi Daniel- I was wondering how I can optimize the code for power saving? In embedded-c, it can be done by turning on/off (power/clock gating) the BLE periodically. Is it there any similiar knob in Energia to do so? How can I do control/config cc2640 from MSP430 for power saving? Thank you

danielohh commented 7 years ago

There isn't a direct way to do this in Energia. However, there are a couple of workarounds.

  1. If you use Energia MT with the CC3200 or MSP432 then your sketch is run on top of TI-RTOS (see http://energia.nu/tag/energia-mt/). The RTOS is often able to automatically enter power savings modes, especially during delays. You won't have fine control over this, however.

  2. Import your Energia sketch into CCS Cloud IDE dev.ti.com/ide. This brings your Energia code into a more tradition IDE that will allow you to add in C code around your sketch to bring in power savings options.