6 years, 4 months ago.

POwer mesurment of Each perpherial during an application execution.

I am having STM32L475 IoT NODE board.

Is there a way that I can get measure the 1) Peripherals(like WIFI module UART) power measurement during a cloud application execution. 2) and percentage Microcontroller usage means CPU usage %.

Can anyone help.

1 Answer

6 years, 4 months ago.

Hello Raghavan,

The only way that you are able to measure the power usage of peripheral is to have a sensor sensor that measure the how much current is going to the wifi module. You then can multiply it with the voltage that you provided to the wifi and you will get total power consumption. However, the wifi module that provided by the board did not have any current sensor attach to it. Therefore, you have to measure the power consumption of the entire board and subtract the power consumption of other peripherals and CPU.

As for the CPU usage, you can follow this manual here for mbed statistic example https://os.mbed.com/docs/v5.9/reference/mbed-statistics.html and this github power consumption example https://github.com/ARMmbed/mbed-os-example-cpu-usage

Please let me know if you have any questions!

- Peter, team Mbed

If this solved your question, please make sure to click the "Thanks" link below!

Accepted Answer