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: Measure Current consumption in standby & Idle modes

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

I was attempting to measure current consumption at various power-down modes. While using the GPIOshutdown code, Im able to place the device in shutdown mode. Similarly, I aim to transition the device into standby and idle modes to test power consumption. Could you please assist with this?"

  • Hello Navami GS,

    I hope you are doing well. First are you already using EnergyTrace? EnergyTrace is a tool included with CCS which allows you to easily measure the power/current the device is consuming, as well as providing a handy graph. 

    For standby/idle modes this is controlled by the RTOS (FREERTOS) which will put the device automatically in the best power mode (considering what peripherals are running); you can generally test this by using sleep/ClockP_sleep commands. 

    Here is a very similar thread to your question: https://e2e.ti.com/f/1/t/1337334/.

    Thanks,
    Alex F

  • Hi Alex,

    Thank you for responding.

    are you already using EnergyTrace? No, because as I've seen in the documentation, it's mentioned that for CC2340R5, we can't use it.

    To test this, you can use the sleep/ClockP_sleep commands- For this please let me know what are those commands or please mention an example of this commands

  • Hello Navami GS,

    You can use EnergyTrace with the CC2340R5 device, in my quick test shutdown reads as ~0 uA, and sleep reads ~0.7 uA (sleep pictured below). 

    To quickly test this open up CCS, import the empty example project, or the gpioshutdown project and run EnergyTrace.

    -gpioshutdown shows that after button is pressed the device shutdowns and reaches the lowest (off) power state. 

    -empty project will toggle led, simply remove the LED's jumper or increase sleep increment from sleep(1) to sleep(1000) to show that the device reaches standby current.  

    You can usually call sleep(...); just fine, as well as ClockP_sleep, try the example projects I recommended above and see what result you get! 

    -Also remember that to enter EnegyTrace you first need to build then flash the project, then you can use EnergyTrace. 

    Thanks,
    Alex F

  • Hi,

    thanks for your reply.

    I tried this, ill do once again.

    one doubt in this - if device in sleep or standby mode both are same?

    In the above mentioned empty or gpioshutdown project, how to put device in idle state?

  • Hello Navami GS,

    If left unmodified the gpioshutdown project will place the device into a shutdown (off) state. If you want to test standby/idle you will need to either modify the gpioshutdown to instead sleep for a duration or use the empty example project.

    -The base gpioshutdown example project demonstrates shutdown power state 

    -The base empty project example project demonstrates standby power state (may need to increase sleep duration to make it more obvious)

    Reference Proprietary RF Quick Start Guide (ti.com) for more help setting up the device if needed.

    Thanks,
    Alex F

  • Hi, 

    Is there any project available to test the IDLE power state?

    Apologies for asking multiple times. My requirement is to measure the power consumption of our board in all three power states.(shutdown, shutdown, idle)

    Thanks

  • Hello Navami,

    The three power modes are handled by the Power driver, meaning the device is automatically put in the best power state (*though you can easily set the device into shutdown by calling power shutdown).  Idle and Standby can be a bit less obvious; you could read the datasheet and figure out which peripherals are available for active/idle but not for standby and then use those peripherals and then call sleep (in this case since the peripherals are active the device should be in idle instead of standby). You can check the power in this case to see if the device is in idle or standby. 

    -For example: The LGPTs are available in device Active and Idle power modes.

    There is a previous post you had made with semi-similar results: https://e2e.ti.com/f/1/t/1337334/

    Thanks,
    Alex F