Measure cpu consumption.

4 posts / 0 new
Last post
martzanida
Offline
Last seen:1 month 1 day ago
加入:2014-03-17 14:25
Measure cpu consumption.

Hello dialog.
We would like to know if there is a way to measure the power consumption of the cpu running a specific part of an algorithm. We developed the code using the peripherals example template (no ble). Can we measure the power using the smart snippets tool?
We have tried to download the .hex file to the chip using smart snippets but it doesn’t seem to be working at all.

JE_Dialog
Offline
Last seen:10 hours 14 min ago
工作人员
加入:2013-12-05 14:02
Hello Martzanida,

Hello Martzanida,

what is the problem you are having from smart snippets to download ?

你can use the power profile , but also you can use the development board to attach an external DMM.. please see apps note AN-B-015 which details the methods needed. Note that power profiler is excellent as a general tool, but if you want very accurate uA level measurements, you will need a professional DMM...

(AN-B-015 is written for teh EXPERT kit, but method applies same for the PRO kit). Note that if you have basic kit, power profiler is not enabled.

BR JE_Dialog

martzanida
Offline
Last seen:1 month 1 day ago
加入:2014-03-17 14:25
我们使用了外围

我们使用了外围_examples as template and created a project that interacts with an IMU by i2c and shows processed results on a terminal. Although we can download the .hex file using the debugger it seems that when we try to download it with smart snippets and initialize the terminal it prints random characters (it seems like that the device is reseted and no program is downloaded).
Thank you for the AN-B-015 reference. Probably the currents we are trying to measure are too small for the tool.

MH_Dialog (not verified)
Hello Martzanida,

Hello Martzanida,

there is no way for DA14580 to print random characters after reset is asserted if the application is stored in RAM. If you are able to download peripheral project, I assume that you project must be able to run on DA14580. Regarding to current measurement, as John mentioned , SmartSnippets can be used and accurate uA level measurements may need DMM.

BR,
Morris